Scala Library Documentation
|
|
scala/collection/jcl/SortedMap.scala
]
trait
SortedMap[K, E]
extends
SortedMap[K, E] with
Map[K, E] with
Sorted[K, (K, E)]Type Summary | |
protected final type
|
SortedSelf |
Method Summary | |
protected def
|
Range (from : Option[K], until : Option[K]) : SortedMap[K, E] |
override abstract def
|
compare
(k0 : K, k1 : K) : Int
Comparison function that orders keys.
|
override def
|
first
: K
Returns the first key of the collection.
|
override def
|
keySet
: SortedSet[K]
return as a projection the set of keys in this collection
|
override def
|
last
: K
Returns the last key of the collection.
|
override def
|
lense [F](f : (E) => F, g : (F) => E) : SortedMap[K, F] |
override def
|
projection
: Projection
returns a facade that can be used to call non-strict
filter ,
map , and flatMap methods that build projections
of the collection. |
override def
|
rangeImpl
(from : Option[K], until : Option[K]) : SortedMap[K, E]
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.
|
Methods inherited from Sorted | |
to |
Methods inherited from Ranged | |
from, until, range |
Methods inherited from Map | |
put (abstract), elements (abstract), clear, isEmpty, keys, valueSet, putAll, remove, has, get, update, +, +=, -, -= |
Methods inherited from Map | |
+=, ++=, ++=, +, ++, ++, -=, --=, --=, -, --, --, getOrElseUpdate, transform, retain, <<, clone, +=, incl, excl |
Methods inherited from MutableIterable | |
remove, removeAll, --, -, retain, retainAll, size0 |
Methods inherited from Sorted | |
hasAll |
Methods inherited from Map | |
size (abstract), getOrElse, apply, contains, isDefinedAt, values, equals, hashCode, toString, default |
Methods inherited from Collection | |
toArray, stringPrefix |
Methods inherited from Iterable | |
concat, ++, map, flatMap, filter, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from AnyRef | |
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
protected class
|
Filter
(p : (K) => Boolean) extends SuperFilter with SortedMap[K, E]
|
protected class
|
KeySet
extends KeySet with SortedSet[K]
|
protected class
|
Lense
[F](f : (E) => F, g : (F) => E) extends Lense[F] with SortedMap[K, F]
|
class
|
Projection
extends Projection
|
protected class
|
Range
(from : Option[K], until : Option[K]) extends SuperFilter with SortedMap[K, E]
|
protected class
|
SuperFilter
(p : (K) => Boolean) extends Filter
|
Type Details |
Method Details |
override
def
first : K
override
def
last : 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.override
def
projection : Projection
filter
,
map
, and flatMap
methods that build projections
of the collection.
Scala Library Documentation
|
|