Package com.saxonica.ee.stream.adjunct

## Class GroupEndingTester

- java.lang.Object
- - com.saxonica.ee.stream.adjunct.GroupBoundaryTester
  - - com.saxonica.ee.stream.adjunct.GroupEndingTester

-     public class GroupEndingTester
      extends GroupBoundaryTester

  This class implements GroupingFeed when the group-ending-with option is used. It contains the logic to decide whether an item starts a new group

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `GroupEndingTester​(ForEachGroup expression, XPathContext context)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `notifyItem()` | Signal an item that matches the selection has been found.

    - ### Methods inherited from class com.saxonica.ee.stream.adjunct.GroupBoundaryTester

      `getControllingExpression, getLocalContext, setControllingExpression`

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

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

- - ### Constructor Detail

    - #### GroupEndingTester

          public GroupEndingTester​(ForEachGroup expression,
                                   XPathContext context)

  - ### Method Detail

    - #### notifyItem

          public boolean notifyItem()
                             throws XPathException

      Signal an item that matches the selection has been found.
      Specified by:
        `notifyItem` in class `GroupBoundaryTester`
      Returns:
        true if this item is the start of a new group
      Throws:
        `XPathException` - May be raised if a dynamic error occurs