Method Successor
Successor(T)
Find the strict successor in the sorted collection of a particular value, that is, the least item in the collection greater than the supplied value.
Declaration
T Successor(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to find the successor for. |
Returns
Type | Description |
---|---|
T | The successor. |
Exceptions
Type | Condition |
---|---|
NoSuchItemException | if no such element exists (the supplied value is greater than or equal to the maximum of this collection.) |