|
Scala 2.4.0-RC2
|
abstract
trait
Ranged
[K, +A]
extends
java.lang.Object
with
scala.Iterable[A]
with
scala.ScalaObject
Def Summary | |
abstract
|
def
compare
(k0: K, k1: K)
: scala.Int
Comparison function that orders keys. |
abstract
|
def
first
: K
Returns the first key of the collection. |
def
from
(from: K)
: scala.collection.Ranged[K, A]
Creates a ranged projection of this collection with no upper-bound. |
|
abstract
|
def
last
: K
Returns the last key of the collection. |
def
range
(from: K, until: K)
: scala.collection.Ranged[K, A]
Creates a ranged projection of this collection with both a lower-bound and an upper-bound. |
|
abstract
|
def
rangeImpl
(from: scala.Option[K], until: scala.Option[K])
: scala.collection.Ranged[K, A]
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. |
def
until
(until: K)
: scala.collection.Ranged[K, A]
Creates a ranged projection of this collection with no lower-bound. |
Def inherited from scala.Iterable[A] | |
++ , /:, :\, addString, concat, copyToBuffer, drop, dropWhile, elements, exists, filter, find, findIndexOf, flatMap, foldLeft, foldRight, forall, foreach, indexOf, map, mkString, mkString, reduceLeft, reduceRight, sameElements, take, takeWhile, toList |
Def Detail |
abstract
def
first
: K
def
from
(from: K): scala.collection.Ranged[K, A]
from -
The lower-bound (inclusive) of the ranged projection.
abstract
def
last
: K
def
range
(from: K, until: K): scala.collection.Ranged[K, A]
from -
The upper-bound (exclusive) of the ranged projection.
until -
...
abstract
def
rangeImpl
(from: scala.Option[K], until: scala.Option[K]): scala.collection.Ranged[K, 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.
def
until
(until: K): scala.collection.Ranged[K, A]
until -
The upper-bound (exclusive) of the ranged projection.