interface SortedSet
source · line 48public
public interface SortedSet<T> : Set<T>
- Supertype
Set<T> - Inherited
operator fun contains(value: T): Boolean· Set<T> - Inherited
operator fun iterator(): Iterator<T>· Iterable<T> - Inherited
val size: Long· Collection<T>
A set ordered by its comparator, with nearest-element queries returning None when no bound exists.
Extensions
property comparator
source · line 52public
public val comparator: Comparator<T>
get: public read-only
The comparator used for ordering and, for ordered maps/sets, equivalence.
function firstOrNone
source · line 56public
public fun firstOrNone(): T?
Returns the least element, or None when empty.
function ceiling
source · line 72public
public fun ceiling(element: T): T?
Returns the least element at or above the argument, or None.
parameter element
source · line 72public
element: T
function lastOrNone
source · line 60public
public fun lastOrNone(): T?
Returns the greatest element, or None when empty.
function higher
source · line 76public
public fun higher(element: T): T?
Returns the least element strictly above the argument, or None.
parameter element
source · line 76public
element: T
type parameter T
source · line 48public
T
function floor
source · line 68public
public fun floor(element: T): T?
Returns the greatest element at or below the argument, or None.
parameter element
source · line 68public
element: T
function lower
source · line 64public
public fun lower(element: T): T?
Returns the greatest element strictly below the argument, or None.
parameter element
source · line 64public
element: T