Method Predecessor
Predecessor(T)
Find the strict predecessor in the sorted collection of a particular value, i.e. the largest item in the collection less than the supplied value.
Declaration
public T Predecessor(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to find the predecessor for. |
Returns
Type | Description |
---|---|
T | The predecessor. |
Implements
Exceptions
Type | Condition |
---|---|
NoSuchItemException | if no such element exists (the supplied value is less than or equal to the minimum of this collection.) |