scala.collection.mutable.WrappedArray

ofRef

class ofRef[T <: AnyRef] extends WrappedArray[T]

attributes: final

Inherits

  1. WrappedArray
  2. ArrayLike
  3. IndexedSeq
  4. IndexedSeqLike
  5. IndexedSeq
  6. IndexedSeqLike
  7. Seq
  8. Seq
  9. SeqLike
  10. PartialFunction
  11. Function1
  12. Iterable
  13. Iterable
  14. IterableLike
  15. Equals
  16. Traversable
  17. Mutable
  18. Traversable
  19. GenericTraversableTemplate
  20. TraversableLike
  21. HasNewBuilder
  22. AnyRef
  23. Any

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations

Value Members

  1. def ++[B >: T, That](that: Iterator[B])(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Concatenates this sequence with the elements of an iterator

  2. def ++[B >: T, That](that: Traversable[B])(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Concatenates this sequence with the elements of a traversable collection

  3. def +:[B >: T, That](elem: B)(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Prepends an element to this sequence

  4. def /:[B](z: B)(op: (B, T) ⇒ B): B

    Applies a binary operator to a start value and all elements of this sequence, going left to right

  5. def :+[B >: T, That](elem: B)(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Appends an element to this sequence

  6. def :\[B](z: B)(op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence and a start value, going right to left

  7. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this sequence to a string builder

  8. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this sequence to a string builder using a separator string

  9. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this sequence to a string builder using start, end, and separator strings

  10. def andThen[C](k: (T) ⇒ C): PartialFunction[Int, C]

    Composes this partial function with a transformation function that gets applied to results of this partial function

  11. def apply(index: Int): T

    The element at given index @return the element of this sequence at index idx, where 0 indicates the first element

  12. val array: Array[T]

    The underlying array

  13. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind

  14. def companion: GenericCompanion[IndexedSeq[A][A]]

    The factory companion object that builds instances of class Seq

  15. def compose[A](g: (A) ⇒ Int): (A) ⇒ T

    (f compose g)(x) == f(g(x))

  16. def contains(elem: Any): Boolean

    Tests whether this sequence contains a given value as an element

  17. def containsSlice[B](that: Seq[B]): Boolean

    Tests whether this sequence contains a given sequence as a slice

  18. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this sequence to an array

  19. def copyToArray[B >: T](xs: Array[B]): Unit

    Copies elements of this sequence to an array

  20. def copyToArray[B >: T](xs: Array[B], start: Int): Unit

    Copies elements of this sequence to an array

  21. def copyToBuffer[B >: T](dest: Buffer[B]): Unit

    Copies all elements of this sequence to a buffer

  22. def corresponds[B](that: Seq[B])(p: (T, B) ⇒ Boolean): Boolean

    Tests whether every element of this sequence relates to the corresponding element of another sequence by satisfying a test predicate

  23. def count(p: (T) ⇒ Boolean): Int

    Counts the number of elements in the sequence which satisfy a predicate

  24. def deep: IndexedSeq[Any]

    Creates a possible nested IndexedSeq which consists of all the elements of this array

  25. def diff[B >: T, That](that: Seq[B]): WrappedArray[T]

    Computes the multiset difference between this sequence and another sequence

  26. def drop(n: Int): WrappedArray[T]

    Selects all elements except first n ones

  27. def dropRight(n: Int): WrappedArray[T]

    Selects all elements except first n ones

  28. def dropWhile(p: (T) ⇒ Boolean): WrappedArray[T]

    Drops longest prefix of elements that satisfy a predicate

  29. var elemManifest: ClassManifest[T]

    The manifest of the element type

  30. def elements: Iterator[T]

  31. def endsWith[B](that: Seq[B]): Boolean

    Tests whether this sequence ends with the given sequence

  32. def equals(that: Any): Boolean

    The equality method defined in AnyRef

  33. def equalsWith[B](that: Seq[B])(f: (T, B) ⇒ Boolean): Boolean

    Tests whether every element of this sequence relates to the corresponding element of another sequence by satisfying a test predicate

  34. def exists(p: (T) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this sequence

  35. def filter(p: (T) ⇒ Boolean): WrappedArray[T]

    Selects all elements of this sequence which satisfy a predicate

  36. def filterNot(p: (T) ⇒ Boolean): WrappedArray[T]

    Selects all elements of this sequence which do not satisfy a predicate

  37. def find(p: (T) ⇒ Boolean): Option[T]

    Finds the first element of the sequence satisfying a predicate, if any

  38. def findIndexOf(p: (T) ⇒ Boolean): Int

    Returns index of the first element satisying a predicate, or -1

  39. def findLastIndexOf(p: (T) ⇒ Boolean): Int

    Returns index of the last element satisying a predicate, or -1

  40. def first: T

  41. def firstOption: Option[T]

    None if iterable is empty

  42. def flatMap[B, That](f: (T) ⇒ Traversable[B])(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Builds a new collection by applying a function to all elements of this sequence and concatenating the results

  43. def flatten[B](asTraversable: (T) ⇒ Traversable[B]): IndexedSeq[B]

    Converts this sequence of traversable collections into a sequence in which all element collections are concatenated

  44. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B

    Applies a binary operator to a start value and all elements of this sequence, going left to right

  45. def foldRight[B](z: B)(op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence and a start value, going right to left

  46. def forall(p: (T) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this sequence

  47. def foreach[U](f: (T) ⇒ U): Unit

    Applies a function f to all elements of this sequence

  48. def genericBuilder[B]: Builder[B, IndexedSeq[B]]

    The generic builder that builds instances of Seq at arbitrary element types

  49. def groupBy[K](f: (T) ⇒ K): Map[K, WrappedArray[T]]

    Partitions this sequence into a map of sequences according to some discriminator function

  50. def hasDefiniteSize: Boolean

    Tests whether this sequence is known to have a finite size

  51. def hashCode(): Int

    Hashcodes for Seq produce a value from the hashcodes of all the elements of the sequence

  52. def head: T

    Selects the first element of this sequence

  53. def headOption: Option[T]

    Optionally selects the first element

  54. def indexOf[B >: T](elem: B, from: Int): Int

    Finds index of first occurrence of some value in this sequence after or at some start index

  55. def indexOf[B >: T](elem: B): Int

    Finds index of first occurrence of some value in this sequence

  56. def indexOfSlice[B >: T](that: Seq[B], from: Int): Int

    Finds first index after or at a start index where this sequence contains a given sequence as a slice

  57. def indexOfSlice[B >: T](that: Seq[B]): Int

    Finds first index where this sequence contains a given sequence as a slice

  58. def indexWhere(p: (T) ⇒ Boolean, from: Int): Int

    Finds index of the first element satisfying some predicate after or at some start index

  59. def indexWhere(p: (T) ⇒ Boolean): Int

    Finds index of first element satisfying some predicate

  60. def indices: Range

    Produces the range of all indices of this sequence

  61. def init: WrappedArray[T]

    Selects all elements except the last

  62. def intersect[B >: T, That](that: Seq[B]): WrappedArray[T]

    Computes the multiset intersection between this sequence and another sequence

  63. def isDefinedAt(idx: Int): Boolean

    Tests whether this sequence contains given index

  64. def isEmpty: Boolean

    Tests whether this sequence is empty

  65. def iterator: Iterator[T]

    Creates a new iterator over all elements contained in this iterable object

  66. def last: T

    Selects the last element

  67. def lastIndexOf[B >: T](elem: B, end: Int): Int

    Finds index of last occurrence of some value in this sequence before or at a given end index

  68. def lastIndexOf[B >: T](elem: B): Int

    Finds index of last occurrence of some value in this sequence

  69. def lastIndexOfSlice[B >: T](that: Seq[B], end: Int): Int

    Finds last index before or at a given end index where this sequence contains a given sequence as a slice

  70. def lastIndexOfSlice[B >: T](that: Seq[B]): Int

    Finds last index where this sequence contains a given sequence as a slice

  71. def lastIndexWhere(p: (T) ⇒ Boolean, end: Int): Int

    Finds index of last element satisfying some predicate before or at given end index

  72. def lastIndexWhere(p: (T) ⇒ Boolean): Int

    Finds index of last element satisfying some predicate

  73. def lastOption: Option[T]

    Optionally selects the last element

  74. def length: Int

    The length of the array @return the number of elements in this sequence

  75. def lengthCompare(len: Int): Int

    Compares the length of this sequence to a test value

  76. def lift: (Int) ⇒ Option[T]

    Turns this partial function into an plain function returning an Option result

  77. def map[B, That](f: (T) ⇒ B)(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Builds a new collection by applying a function to all elements of this sequence

  78. def max[B >: T](cmp: Ordering[B]): T

    Finds the largest element

  79. def min[B >: T](cmp: Ordering[B]): T

    Finds the smallest element

  80. def mkString: String

    Displays all elements of this sequence in a string

  81. def mkString(sep: String): String

    Displays all elements of this sequence in a string using a separator string

  82. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this sequence in a string using start, end, and separator strings

  83. def nonEmpty: Boolean

    Tests whether the sequence is not empty

  84. def orElse[A1 <: Int, B1 >: T](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Composes this partial function with a fallback partial function which gets applied where this partial function is not defined

  85. def padTo[B >: T, That](len: Int, elem: B)(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Appends an element value to this sequence until a given target length is reached

  86. def partialMap[B, That](pf: PartialFunction[T, B])(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Builds a new collection by applying a partial function to all elements of this sequence on which the function is defined

  87. def partition(p: (T) ⇒ Boolean): (WrappedArray[T], WrappedArray[T])

    Partitions this sequence in two sequences according to a predicate

  88. def patch[B >: T, That](from: Int, patch: Seq[B], replaced: Int)(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Produces a new sequence where a slice of elements in this sequence is replaced by another sequence

  89. def prefixLength(p: (T) ⇒ Boolean): Int

    Returns the length of the longest prefix whose elements all satisfy some preficate

  90. def product[B >: T](num: Numeric[B]): B

    Multiplies up the elements of this collection

  91. def projection: SeqView[T, WrappedArray[T]]

    returns a projection that can be used to call non-strict filter, map, and flatMap methods that build projections of the collection

  92. def reduceLeft[B >: T](op: (B, T) ⇒ B): B

    Applies a binary operator to all elements of this sequence, going left to right

  93. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this sequence, going left to right

  94. def reduceRight[B >: T](op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence, going right to left

  95. def reduceRightOption[B >: T](op: (T, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this sequence, going right to left

  96. def removeDuplicates: WrappedArray[T]

    Builds a new sequence from this sequence without any duplicate elements

  97. def repr: WrappedArray[T]

    The collection of type sequence underlying this TraversableLike object

  98. def reverse: WrappedArray[T]

    Returns new sequence wih elements in reversed order

  99. def reverseIterator: Iterator[T]

    An iterator yielding elements in reversed order

  100. def reverseMap[B, That](f: (T) ⇒ B)(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Builds a new collection by applying a function to all elements of this sequence and collecting the results in reversed order

  101. def reversedElements: Iterator[T]

  102. def sameElements[B >: T](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this sequence

  103. def segmentLength(p: (T) ⇒ Boolean, from: Int): Int

    Computes length of longest segment whose elements all satisfy some preficate

  104. def size: Int

    The size of this sequence, equivalent to length

  105. def slice(from: Int, until: Int): WrappedArray[T]

    Selects an interval of elements

  106. def sortBy[B](f: (T) ⇒ B)(ord: Ordering[B]): WrappedArray[T]

    Sorts this Seq according to the Ordering which results from transforming an implicitly given Ordering with a transformation function

  107. def sortWith[B >: T](ord: Ordering[B]): WrappedArray[T]

    Sorts this sequence according to an Ordering

  108. def sortWith(lt: (T, T) ⇒ Boolean): WrappedArray[T]

    Sorts this sequence according to a comparison function

  109. def span(p: (T) ⇒ Boolean): (WrappedArray[T], WrappedArray[T])

    Spits this sequence into a prefix/suffix pair according to a predicate

  110. def splitAt(n: Int): (WrappedArray[T], WrappedArray[T])

    Splits this sequence into two at a given position

  111. def startsWith[B](that: Seq[B], offset: Int): Boolean

    Tests whether this sequence contains the given sequence at a given index

  112. def startsWith[B](that: Seq[B]): Boolean

    Tests whether this sequence starts with the given sequence

  113. def stringPrefix: String

    Defines the prefix of this object's toString representation

  114. def sum[B >: T](num: Numeric[B]): B

    Sums up the elements of this collection

  115. def tail: WrappedArray[T]

    Selects all elements except the first

  116. def take(n: Int): WrappedArray[T]

    Selects first n elements

  117. def takeRight(n: Int): WrappedArray[T]

    Selects last n elements

  118. def takeWhile(p: (T) ⇒ Boolean): WrappedArray[T]

    Takes longest prefix of elements that satisfy a predicate

  119. def toArray[B >: T](arg0: ClassManifest[B]): Array[B]

    Converts this sequence to an array

  120. def toIndexedSeq[B >: T]: IndexedSeq[B]

    Converts this sequence to an indexed sequence

  121. def toIterable: Iterable[T]

    Converts this sequence to an iterable collection

  122. def toList: List[T]

    Converts this sequence to a list

  123. def toSeq: Seq[T]

    Converts this sequence to a sequence

  124. def toSet[B >: T]: Set[B]

    Converts this sequence to a set

  125. def toStream: Stream[T]

    Converts this sequence to a stream

  126. def toString(): String

    Converts this sequence to a string

  127. def transpose[B](asTraversable: (T) ⇒ Traversable[B]): IndexedSeq[IndexedSeq[B]]

    Transposes this sequence of traversable collections into

  128. def union[B >: T, That](that: Seq[B])(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    Produces a new sequence which contains all elements of this sequence and also all elements of a given sequence

  129. def unzip[A1, A2](asPair: (T) ⇒ (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])

    Converts this sequence of pairs into two collections of the first and second halfs of each pair

  130. def update(index: Int, elem: T): Unit

    Update element at given index

  131. def updated[B >: T, That](index: Int, elem: B)(bf: CanBuildFrom[WrappedArray[T], B, That]): That

    A copy of this sequence with one single replaced element

  132. def view(from: Int, until: Int): IndexedSeqView[T, WrappedArray[T]]

    A sub-sequence view starting at index from and extending up to (but not including) index until

  133. def view: IndexedSeqView[T, WrappedArray[T]]

    Creates a view of this iterable @see Iterable

  134. def withFilter(p: (T) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this sequence

  135. def zip[A1 >: T, B, That](that: Iterable[B])(bf: CanBuildFrom[WrappedArray[T], (A1, B), That]): That

    Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs

  136. def zipAll[B, A1 >: T, That](that: Iterable[B], thisElem: A1, thatElem: B)(bf: CanBuildFrom[WrappedArray[T], (A1, B), That]): That

    Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs

  137. def zipWithIndex[A1 >: T, That](bf: CanBuildFrom[WrappedArray[T], (A1, Int), That]): That

    Zips this sequence with its indices

Instance constructors

  1. new ofRef(array: Array[T])

  2. new ofRef()