in scala.collection.jcl
trait Ranged

abstract trait Ranged [K, A]
extends java.lang.Object
with scala.collection.jcl.MutableIterable[A]
with scala.collection.Ranged[K, A]
with scala.ScalaObject
Any collection (including maps) whose keys (or elements) are ordered.
Author:
Sean McDirmid
Direct Known Subclasses:
Sorted, Buffer

Class Summary
protected class Comparator [K]
A wrapper around Java comparators.
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.
final override def from (from: K) : Ranged.this.SortedSelf
Creates a ranged projection of this collection with no upper-bound. * @param from The lower-bound (inclusive) of the ranged projection.
abstract def last : K
Returns the last key of the collection.
final override def range (from: K, until: K) : Ranged.this.SortedSelf
Creates a ranged projection of this collection with both a lower-bound and an upper-bound. * @param from The upper-bound (exclusive) of the ranged projection.
abstract def rangeImpl (from: scala.Option[K], until: scala.Option[K]) : Ranged.this.SortedSelf
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.
final override def until (until: K) : Ranged.this.SortedSelf
Creates a ranged projection of this collection with no lower-bound. * @param until The upper-bound (exclusive) of the ranged projection.
Def inherited from scala.collection.jcl.MutableIterable[A]
- , --, clear, elements, has, isEmpty, pmap, remove, removeAll, retain, retainAll, size
Def inherited from scala.collection.Ranged[K, A]
compare , first, from, last, range, rangeImpl, until
Def Detail
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.

final override def from (from: K): Ranged.this.SortedSelf
Creates a ranged projection of this collection with no upper-bound. * @param from The lower-bound (inclusive) of the ranged projection.

abstract def last : K
Returns the last key of the collection.

final override def range (from: K, until: K): Ranged.this.SortedSelf
Creates a ranged projection of this collection with both a lower-bound and an upper-bound. * @param from The upper-bound (exclusive) of the ranged projection.

abstract def rangeImpl (from: scala.Option[K], until: scala.Option[K]): Ranged.this.SortedSelf
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.
Parameters:
from - The lower-bound (inclusive) of the ranged projection. None if there is no lower bound.
Parameters:
until - The upper-bound (exclusive) of the ranged projection. None if there is no upper bound.

final override def until (until: K): Ranged.this.SortedSelf
Creates a ranged projection of this collection with no lower-bound. * @param until The upper-bound (exclusive) of the ranged projection.