Scala Library
|
|
trait
SortedSetTemplate[A, +This <: SortedSet[A] with
SortedSetTemplate[A, This]]
extends
Sorted[A, This] with
SetTemplate[A, This]Method Summary | |
override def
|
firstKey
: A
Returns the first key of the collection.
|
override def
|
from
(from : A) : This
Creates a ranged projection of this collection with no upper-bound.
|
override def
|
keySet
: This
return as a projection the set of keys in this collection
|
override def
|
lastKey
: A
Returns the last key of the collection.
|
override def
|
range
(from : A, until : A) : This
Creates a ranged projection of this collection with both a lower-bound
and an upper-bound.
|
abstract def
|
rangeImpl
(from : Option[A], until : Option[A]) : 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.
|
override def
|
subsetOf
(that : Set[A]) : Boolean
Checks if this set is a subset of set
that . |
override def
|
until
(until : A) : This
Creates a ranged projection of this collection with no lower-bound.
|
Methods inherited from SetTemplate | |
empty (abstract), contains (abstract), + (abstract), - (abstract), newBuilder, isEmpty, apply, intersect, &, **, union, |, diff, &~, equals, stringPrefix, toString |
Methods inherited from Subtractable | |
-, --, -- |
Methods inherited from Addable | |
+, ++, ++ |
Methods inherited from IterableTemplate | |
iterator (abstract), elements, foreach, foldRight, reduceRight, toIterable, head, takeRight, dropRight, sameElements, toStream, view, view, first, firstOption, toSeq, projection |
Methods inherited from TraversableTemplate | |
thisCollection, nonEmpty, size, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSequence, toSet, mkString, mkString, mkString, addString, addString, addString |
Methods inherited from Sorted | |
ordering (abstract), compare, to, hasAll |
Methods inherited from AnyRef | |
getClass, hashCode, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
override
def
keySet : This
override
def
firstKey : A
override
def
lastKey : A
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 -
...that
.that -
another set.true
iff the other set is a superset of this set.
todo: rename to isSubsetOf
Scala Library
|
|