Scala Library
|
|
scala/collection/jcl/Sorted.scala
]
trait
Sorted[K, A]
extends
Sorted[K, A] with
Ranged[K, A]Type Summary | |
protected override abstract type
|
SortedSelf <: Sorted[K, A] |
Method Summary | |
override abstract def
|
keySet
: SortedSet[K]
return as a projection the set of keys in this collection
|
override abstract def
|
rangeImpl
(from : Option[K], until : Option[K]) : SortedSelf
Creates a ranged projection of this collection. Any mutations in the
ranged projection will update this collection and vice versa. Keys
are garuanteed to be consistent between the collection and its projection.
|
override final def
|
to
(to : K) : SortedSelf
Create a range projection of this collection with no lower-bound.
* @param to The upper-bound (inclusive) of the ranged projection.
|
Methods inherited from Ranged | |
compare (abstract), from, until, range |
Methods inherited from MutableIterable | |
elements (abstract), has, remove, removeAll, --, -, retainOnly, retainAll, size0, clear, projection |
Methods inherited from Collection | |
size (abstract), toArray, toString, stringPrefix |
Methods inherited from Sorted | |
hasAll |
Methods inherited from Iterable | |
concat, ++, map, flatMap, filter, partition, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toSeq, toStream, mkString, mkString, mkString, addString, addString, addString, copyToArray, isEmpty, hasDefiniteSize |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Methods inherited from Ranged | |
firstKey (abstract), lastKey (abstract) |
Type Details |
Method Details |
override abstract
def
rangeImpl(from : Option[K], until : Option[K]) : SortedSelf
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.override final
def
to(to : K) : SortedSelf
Scala Library
|
|