ConstArray

slick.util.ConstArray
See theConstArray companion object
final class ConstArray[+T] extends Product

An efficient immutable array implementation which is used in the AST. Semantics are generally the same as for Scala collections but for performance reasons it does not implement any standard collection traits.

Attributes

Companion:
object
Source:
ConstArray.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def ++[U >: T](u: ConstArray[U]): ConstArray[U]

Attributes

Source:
ConstArray.scala
def ++(o: Option[T]): ConstArray[T]

Attributes

Source:
ConstArray.scala
def +:(v: T): ConstArray[T]

Attributes

Source:
ConstArray.scala
def :+(v: T): ConstArray[T]

Attributes

Source:
ConstArray.scala
def apply(i: Int): T

Attributes

Source:
ConstArray.scala
def canEqual(that: Any): Boolean

Attributes

Source:
ConstArray.scala
def collect[R](f: PartialFunction[T, R]): ConstArray[R]

Attributes

Source:
ConstArray.scala
def drop(n: Int): ConstArray[T]

Attributes

Source:
ConstArray.scala
def endoMap(f: T => T): ConstArray[T]

Perform a mapping operation that does not change the type. If all elements remain unchanged (as determined by object identity), return this ConstArray instead of building a new one.

Perform a mapping operation that does not change the type. If all elements remain unchanged (as determined by object identity), return this ConstArray instead of building a new one.

Attributes

Source:
ConstArray.scala
override def equals(o: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Attributes

that

the object to compare against this object for equality.

Returns:

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Equals -> Any
Source:
ConstArray.scala
def exists(f: T => Boolean): Boolean

Attributes

Source:
ConstArray.scala
def filter(p: T => Boolean): ConstArray[T]

Attributes

Source:
ConstArray.scala
def find(f: T => Boolean): Option[T]

Attributes

Source:
ConstArray.scala
def flatMap[R](f: T => ConstArray[R]): ConstArray[R]

Attributes

Source:
ConstArray.scala
def flatten[R](implicit ev: T <:< ConstArray[R]): ConstArray[R]

Attributes

Source:
ConstArray.scala
def foldLeft[B](z: B)(op: (B, T) => B): B

Attributes

Source:
ConstArray.scala
def foldRight[B](z: B)(op: (T, B) => B): B

Attributes

Source:
ConstArray.scala
def forall(f: T => Boolean): Boolean

Attributes

Source:
ConstArray.scala
def foreach[R](f: T => R): Unit

Attributes

Source:
ConstArray.scala
override def hashCode: Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns:

the hash code value for this object.

Definition Classes
Any
Source:
ConstArray.scala
def head: T

Attributes

Source:
ConstArray.scala
def headOption: Option[T]

Attributes

Source:
ConstArray.scala
def indexWhere(f: T => Boolean): Int

Attributes

Source:
ConstArray.scala

Attributes

Source:
ConstArray.scala
def isEmpty: Boolean

Attributes

Source:
ConstArray.scala
def iterator: Iterator[T]

Attributes

Source:
ConstArray.scala
def last: T

Attributes

Source:
ConstArray.scala
def lastOption: Option[T]

Attributes

Source:
ConstArray.scala
def lengthCompare(n: Int): Int

Attributes

Source:
ConstArray.scala
def map[R](f: T => R): ConstArray[R]

Attributes

Source:
ConstArray.scala
def mkString(sep: String): String

Attributes

Source:
ConstArray.scala
def mkString(start: String, sep: String, end: String): String

Attributes

Source:
ConstArray.scala
def nonEmpty: Boolean

Attributes

Source:
ConstArray.scala
def productArity: Int

Attributes

Source:
ConstArray.scala
def productElement(i: Int): Any

Attributes

Source:
ConstArray.scala
override def productPrefix: String

Attributes

Definition Classes
Product
Source:
ConstArray.scala
def slice(from: Int, until: Int): ConstArray[T]

Attributes

Source:
ConstArray.scala

Attributes

Source:
ConstArray.scala
def take(n: Int): ConstArray[T]

Attributes

Source:
ConstArray.scala
def toArray[R >: T : ClassTag]: Array[R]

Attributes

Source:
ConstArray.scala
def toMap[R, U](implicit ev: T <:< (R, U)): HashMap[R, U]

Attributes

Source:
ConstArray.scala
def toSeq: IndexedSeq[T]

Attributes

Source:
ConstArray.scala
def toSet: HashSet[T]

Attributes

Source:
ConstArray.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any
Source:
ConstArray.scala
def withFilter(p: T => Boolean): ConstArrayOp[T]

Attributes

Source:
ConstArray.scala
def zip[U](u: ConstArray[U]): ConstArrayOp[(T, U)]

Attributes

Source:
ConstArray.scala
def zipWithIndex: ConstArrayOp[(T, Int)]

Attributes

Source:
ConstArray.scala

Inherited methods

def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val length: Int

Attributes

Source:
ConstArray.scala