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