Package net.sf.saxon.expr

## Class XPathContextMinor.LastValue

- java.lang.Object
- - net.sf.saxon.expr.XPathContextMinor.LastValue

- Enclosing class:
    XPathContextMinor

      protected static class XPathContextMinor.LastValue
      extends java.lang.Object

  Container for cached value of the last() function. This is shared between all context objects that share the same current iterator. Introduced in 9.2 to handle the case where a new context is introduced when the current outputter changes, without changing the current iterator: in this case the cached value was being lost because each call on last() used a different context object.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `int` | `value` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `LastValue​(int count)` |

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### value

          public final int value

  - ### Constructor Detail

    - #### LastValue

          public LastValue​(int count)