Scala Library
|
|
scala/collection/generic/Sorted.scala
]
trait
Sorted[K, +This <: Sorted[K, This]]
extends
AnyRefMethod Summary | |
def
|
compare
(k0 : K, k1 : K) : Int
Comparison function that orders keys.
|
abstract def
|
firstKey
: K
Returns the first key of the collection.
|
def
|
from
(from : K) : This
Creates a ranged projection of this collection with no upper-bound.
|
protected def
|
hasAll (j : Iterator[K]) : Boolean |
abstract def
|
keySet
: SortedSet[K]
return as a projection the set of keys in this collection
|
abstract def
|
lastKey
: K
Returns the last key of the collection.
|
abstract def
|
ordering : Ordering[K] |
def
|
range
(from : K, until : K) : This
Creates a ranged projection of this collection with both a lower-bound
and an upper-bound.
|
abstract def
|
rangeImpl
(from : Option[K], until : Option[K]) : This
Creates a ranged projection of this collection. Any mutations in the
ranged projection will update this collection and vice versa. Note: keys
are not garuanteed to be consistent between this collection and the projection.
This is the case for buffers where indexing is relative to the projection.
|
protected abstract def
|
repr
: This
The current collection
|
def
|
to
(to : K) : This
Create a range projection of this collection with no lower-bound.
|
def
|
until
(until : K) : This
Creates a ranged projection of this collection with no lower-bound.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
protected abstract
def
repr : This
abstract
def
firstKey : K
abstract
def
lastKey : K
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.from -
The lower-bound (inclusive) of the ranged projection.until -
The upper-bound (exclusive) of the ranged projection.from -
The upper-bound (exclusive) of the ranged projection.until -
...to -
The upper-bound (inclusive) of the ranged projection.
Scala Library
|
|