DenseIntIndex

@SerialVersionUID(1L)
class DenseIntIndex(beg: Int, end: Int) extends Index[Int]

For use when we need an index, but we already have (densely packed) positive ints and don't want hash overhead.

trait Index[Int]
trait Serializable
trait Int => Int
trait Iterable[Int]
class Object
trait Matchable
class Any

Value members

Constructors

def this(end: Int)

Concrete methods

override def apply(t: Int): Int
Definition Classes
override def contains(t: Int): Boolean
Definition Classes
override def get(i: Int): Int
Definition Classes
override def hashCode: Int
Definition Classes
Index -> Any
override def indexOpt(t: Int): Option[Int]
Definition Classes
override def iterator: Iterator[Int]
Definition Classes
override def size: Int
Definition Classes
override def unapply(i: Int): Option[Int]
Definition Classes

Inherited methods

final def ++[B >: Int](suffix: IterableOnce[B]): Iterable[B]
Inherited from:
IterableOps
Inherited from:
IterableOnceOps
def andThen[A](g: Int => A): Int => A
Inherited from:
Function1
Inherited from:
IterableOps
Inherited from:
IterableOnceOps
def compose[A](g: A => Int): A => Int
Inherited from:
Function1
def concat[B >: Int](suffix: IterableOnce[B]): Iterable[B]
Inherited from:
IterableOps
def copyToArray[B >: Int](xs: Array[B], start: Int, len: Int): Int
Inherited from:
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: Int](xs: Array[B], start: Int): Int
Inherited from:
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: Int](xs: Array[B]): Int
Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (Int, B) => Boolean): Boolean
Inherited from:
IterableOnceOps
def count(p: Int => Boolean): Int
Inherited from:
IterableOnceOps
def drop(n: Int): Iterable[Int]
Inherited from:
IterableOps
Inherited from:
IterableOps
Inherited from:
IterableOps
override def empty: Iterable[Int]
override def equals(other: Any): Boolean
Definition Classes
Index -> Any
Inherited from:
Index
Inherited from:
IterableOnceOps
def filter(pred: Int => Boolean): Iterable[Int]
Inherited from:
IterableOps
def filterNot(pred: Int => Boolean): Iterable[Int]
Inherited from:
IterableOps
def find(p: Int => Boolean): Option[Int]
Inherited from:
IterableOnceOps
def flatMap[B](f: Int => IterableOnce[B]): Iterable[B]
Inherited from:
IterableOps
def flatten[B](implicit asIterable: Int => IterableOnce[B]): Iterable[B]
Inherited from:
IterableOps
def fold[A1 >: Int](z: A1)(op: (A1, A1) => A1): A1
Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, Int) => B): B
Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (Int, B) => B): B
Inherited from:
IterableOnceOps
Inherited from:
IterableOnceOps
def foreach[U](f: Int => U): Unit
Inherited from:
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[Int]): Iterable[Int]
def groupBy[K](f: Int => K): Map[K, Iterable[Int]]
Inherited from:
IterableOps
def groupMap[K, B](key: Int => K)(f: Int => B): Map[K, Iterable[B]]
Inherited from:
IterableOps
def groupMapReduce[K, B](key: Int => K)(f: Int => B)(reduce: (B, B) => B): Map[K, B]
Inherited from:
IterableOps
Inherited from:
IterableOps
def head: Int
Inherited from:
IterableOps
Inherited from:
IterableOps
def indexOf(t: Int): Int

Override Iterable's linear-scan indexOf to use our apply method.

Override Iterable's linear-scan indexOf to use our apply method.

Inherited from:
Index
Inherited from:
IterableOps
Inherited from:
IterableOps
Inherited from:
IterableOnceOps
Definition Classes
Inherited from:
IterableOps
Inherited from:
IterableOnce
def last: Int
Inherited from:
IterableOps
Inherited from:
IterableOps
Inherited from:
Iterable
def map[B](f: Int => B): Iterable[B]
Inherited from:
IterableOps
def max[B >: Int](implicit ord: Ordering[B]): Int
Inherited from:
IterableOnceOps
def maxBy[B](f: Int => B)(implicit cmp: Ordering[B]): Int
Inherited from:
IterableOnceOps
def maxByOption[B](f: Int => B)(implicit cmp: Ordering[B]): Option[Int]
Inherited from:
IterableOnceOps
def maxOption[B >: Int](implicit ord: Ordering[B]): Option[Int]
Inherited from:
IterableOnceOps
def min[B >: Int](implicit ord: Ordering[B]): Int
Inherited from:
IterableOnceOps
def minBy[B](f: Int => B)(implicit cmp: Ordering[B]): Int
Inherited from:
IterableOnceOps
def minByOption[B](f: Int => B)(implicit cmp: Ordering[B]): Option[Int]
Inherited from:
IterableOnceOps
def minOption[B >: Int](implicit ord: Ordering[B]): Option[Int]
Inherited from:
IterableOnceOps
final def mkString: String
Inherited from:
IterableOnceOps
final def mkString(sep: String): String
Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String
Inherited from:
IterableOnceOps
@deprecatedOverriding(message = "nonEmpty is defined as !isEmpty; override isEmpty instead", since = "2.13.0")
Inherited from:
IterableOnceOps
Inherited from:
IterableOps
def partitionMap[A1, A2](f: Int => Either[A1, A2]): (Iterable[A1], Iterable[A2])
Inherited from:
IterableOps
def product[B >: Int](implicit num: Numeric[B]): B
Inherited from:
IterableOnceOps
def reduce[B >: Int](op: (B, B) => B): B
Inherited from:
IterableOnceOps
def reduceLeft[B >: Int](op: (B, Int) => B): B
Inherited from:
IterableOnceOps
def reduceLeftOption[B >: Int](op: (B, Int) => B): Option[B]
Inherited from:
IterableOnceOps
def reduceOption[B >: Int](op: (B, B) => B): Option[B]
Inherited from:
IterableOnceOps
def reduceRight[B >: Int](op: (Int, B) => B): B
Inherited from:
IterableOnceOps
def reduceRightOption[B >: Int](op: (Int, B) => B): Option[B]
Inherited from:
IterableOnceOps
protected def reversed: Iterable[Int]
Inherited from:
IterableOnceOps
def scan[B >: Int](z: B)(op: (B, B) => B): Iterable[B]
Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, Int) => B): Iterable[B]
Inherited from:
IterableOps
def scanRight[B](z: B)(op: (Int, B) => B): Iterable[B]
Inherited from:
IterableOps
def sizeCompare(that: Iterable[_]): Int
Inherited from:
IterableOps
def sizeCompare(otherSize: Int): Int
Inherited from:
IterableOps
Inherited from:
IterableOps
def slice(from: Int, until: Int): Iterable[Int]
Inherited from:
IterableOps
def sliding(size: Int, step: Int): Iterator[Iterable[Int]]
Inherited from:
IterableOps
Inherited from:
IterableOps
Inherited from:
IterableOps
override def splitAt(n: Int): (Iterable[Int], Iterable[Int])
Definition Classes
Inherited from:
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[Int, S]): S
Inherited from:
IterableOnce
def sum[B >: Int](implicit num: Numeric[B]): B
Inherited from:
IterableOnceOps
Inherited from:
IterableOps
Inherited from:
IterableOps
def take(n: Int): Iterable[Int]
Inherited from:
IterableOps
Inherited from:
IterableOps
Inherited from:
IterableOps
override def tapEach[U](f: Int => U): Iterable[Int]
Definition Classes
Inherited from:
IterableOps
def to[C1](factory: Factory[Int, C1]): C1
Inherited from:
IterableOnceOps
def toArray[B >: Int : ClassTag]: Array[B]
Inherited from:
IterableOnceOps
final def toBuffer[B >: Int]: Buffer[B]
Inherited from:
IterableOnceOps
Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: Int <:< (K, V)): Map[K, V]
Inherited from:
IterableOnceOps
def toSeq: Seq[Int]
Inherited from:
IterableOnceOps
def toSet[B >: Int]: Set[B]
Inherited from:
IterableOnceOps
override def toString: String
Definition Classes
Index -> Function1 -> Iterable -> Any
Inherited from:
Index
Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: Int => Iterable[B]): Iterable[Iterable[B]]
Inherited from:
IterableOps
def unzip[A1, A2](implicit asPair: Int => (A1, A2)): (Iterable[A1], Iterable[A2])
Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: Int => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
Inherited from:
IterableOps
def view: View[Int]
Inherited from:
IterableOps
def zip[B](that: IterableOnce[B]): Iterable[(Int, B)]
Inherited from:
IterableOps
def zipAll[A1 >: Int, B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
Inherited from:
IterableOps
Inherited from:
IterableOps
def |[U](right: Index[U]): EitherIndex[Int, U]
Inherited from:
Index

Deprecated and Inherited methods

@deprecated(message = "Use ++ instead of ++: for collections of type Iterable", since = "2.13.0")
def ++:[B >: Int](that: IterableOnce[B]): Iterable[B]
Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
@inline @deprecated(message = "Use foldLeft instead of /:", since = "2.13.0")
final def /:[B](z: B)(op: (B, Int) => B): B
Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
@inline @deprecated(message = "Use foldRight instead of :\\", since = "2.13.0")
final def :\[B](z: B)(op: (Int, B) => B): B
Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
@deprecated(message = "`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", since = "2.13.0")
def aggregate[B](z: => B)(seqop: (B, Int) => B, combop: (B, B) => B): B
Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps
@inline @deprecatedOverriding(message = "Use iterableFactory instead", since = "2.13.0") @deprecated(message = "Use iterableFactory instead", since = "2.13.0")
Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
@inline @deprecated(message = "Use `dest ++= coll` instead", since = "2.13.0")
final def copyToBuffer[B >: Int](dest: Buffer[B]): Unit
Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
@deprecated(message = "Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", since = "2.13.0")
Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
@deprecated(message = "Use coll instead of repr in a collection implementation, use the collection value itself from the outside", since = "2.13.0")
final def repr: Iterable[Int]
Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
@deprecated(message = "Iterable.seq always returns the iterable itself", since = "2.13.0")
Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
@deprecated(message = "toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections", since = "2.13.7")
Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
@inline @deprecated(message = "Use .iterator instead of .toIterator", since = "2.13.0")
final def toIterator: Iterator[Int]
Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
@inline @deprecated(message = "Use .to(LazyList) instead of .toStream", since = "2.13.0")
final def toStream: Stream[Int]
Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
@deprecated(message = "toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections", since = "2.13.0")
Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
@deprecated(message = "Use .view.slice(from, until) instead of .view(from, until)", since = "2.13.0")
def view(from: Int, until: Int): View[Int]
Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps