Packages

trait SortedOps[A, +C] extends AnyRef

Base trait for sorted collections

Source
SortedOps.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SortedOps
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def firstKey: A

    Returns the first key of the collection.

  2. abstract def lastKey: A

    Returns the last key of the collection.

  3. abstract def ordering: Ordering[A]
  4. abstract def rangeImpl(from: Option[A], until: Option[A]): C

    Creates a ranged projection of this collection.

    Creates a ranged projection of this collection. Any mutations in the ranged projection will update this collection and vice versa.

    Note: keys are not guaranteed to be consistent between this collection and the projection. This is the case for buffers where indexing is relative to the projection.

    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.

  5. abstract def rangeTo(to: A): C

    Create a range projection of this collection with no lower-bound.

    Create a range projection of this collection with no lower-bound.

    to

    The upper-bound (inclusive) of the ranged projection.

Concrete Value Members

  1. def range(from: A, until: A): C

    Creates a ranged projection of this collection with both a lower-bound and an upper-bound.

    Creates a ranged projection of this collection with both a lower-bound and an upper-bound.

    from

    The lower-bound (inclusive) of the ranged projection.

    until

    The upper-bound (exclusive) of the ranged projection.

  2. def rangeFrom(from: A): C

    Creates a ranged projection of this collection with no upper-bound.

    Creates a ranged projection of this collection with no upper-bound.

    from

    The lower-bound (inclusive) of the ranged projection.

  3. def rangeUntil(until: A): C

    Creates a ranged projection of this collection with no lower-bound.

    Creates a ranged projection of this collection with no lower-bound.

    until

    The upper-bound (exclusive) of the ranged projection.

Deprecated Value Members

  1. def compare(k0: A, k1: A): Int

    Comparison function that orders keys.

    Comparison function that orders keys.

    Annotations
    @deprecated @deprecatedOverriding(message = "Use ordering.compare instead", since = "2.13.0") @inline()
    Deprecated

    (Since version 2.13.0) Use ordering.compare instead

  2. final def from(from: A): C

    Creates a ranged projection of this collection with no upper-bound.

    Creates a ranged projection of this collection with no upper-bound.

    from

    The lower-bound (inclusive) of the ranged projection.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use rangeFrom

  3. final def to(to: A): C

    Create a range projection of this collection with no lower-bound.

    Create a range projection of this collection with no lower-bound.

    to

    The upper-bound (inclusive) of the ranged projection.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use rangeTo

  4. final def until(until: A): C

    Creates a ranged projection of this collection with no lower-bound.

    Creates a ranged projection of this collection with no lower-bound.

    until

    The upper-bound (exclusive) of the ranged projection.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use rangeUntil