scala.collection.SortedOps
Base trait for sorted collections.
Type parameters
A
the element type of this sorted collection
C
the type of the sorted collection itself
Attributes
Source
SortedOps.scala
Graph
Reset zoom Hide graph Show graph
Supertypes
Known subtypes
Members list
Returns the first key of the collection.
Returns the last key of the collection.
Creates a ranged projection of this collection. Any mutations in the ranged projection will update this collection and vice versa.
Creates a ranged projection of this collection. Any mutations in the ranged projection will update this collection and vice versa.
Note: keys are not guaranteed to be consistent between this collection and the projection. This is the case for buffers where indexing is relative to the projection.
Value parameters
from
The lower-bound (inclusive) of the ranged projection. None if there is no lower bound.
until
The upper-bound (exclusive) of the ranged projection. None if there is no upper bound.
Attributes
Returns
a ranged projection of this collection containing only elements within the specified range
Source
SortedOps.scala
Creates a range projection of this collection with no lower-bound.
Creates a range projection of this collection with no lower-bound.
Value parameters
to
The upper-bound (inclusive) of the ranged projection.
Attributes
Returns
a ranged projection of this collection containing only elements less than or equal to to
Source
SortedOps.scala
Creates a ranged projection of this collection with both a lower-bound and an upper-bound.
Creates a ranged projection of this collection with both a lower-bound and an upper-bound.
Value parameters
from
The lower-bound (inclusive) of the ranged projection.
until
The upper-bound (exclusive) of the ranged projection.
Attributes
Returns
a ranged projection of this collection containing only elements greater than or equal to from and less than until
Source
SortedOps.scala
Creates a ranged projection of this collection with no upper-bound.
Creates a ranged projection of this collection with no upper-bound.
Value parameters
from
The lower-bound (inclusive) of the ranged projection.
Attributes
Returns
a ranged projection of this collection containing only elements greater than or equal to from
Source
SortedOps.scala
Creates a ranged projection of this collection with no lower-bound.
Creates a ranged projection of this collection with no lower-bound.
Value parameters
until
The upper-bound (exclusive) of the ranged projection.
Attributes
Returns
a ranged projection of this collection containing only elements less than until
Source
SortedOps.scala
Comparison function that orders keys.
Comparison function that orders keys.
Attributes
Deprecated
[Since version 2.13.0] Use ordering.compare instead
Source
SortedOps.scala
Creates a ranged projection of this collection with no upper-bound.
Creates a ranged projection of this collection with no upper-bound.
Value parameters
from
The lower-bound (inclusive) of the ranged projection.
Attributes
Deprecated
[Since version 2.13.0] Use rangeFrom
Source
SortedOps.scala
Creates a range projection of this collection with no lower-bound.
Creates a range projection of this collection with no lower-bound.
Value parameters
to
The upper-bound (inclusive) of the ranged projection.
Attributes
Deprecated
[Since version 2.13.0] Use rangeTo
Source
SortedOps.scala
Creates a ranged projection of this collection with no lower-bound.
Creates a ranged projection of this collection with no lower-bound.
Value parameters
until
The upper-bound (exclusive) of the ranged projection.
Attributes
Deprecated
[Since version 2.13.0] Use rangeUntil
Source
SortedOps.scala