Packages

final class OptRefs[A <: AnyRef] extends AnyVal with ArrayLikeBase[OptRef[A]]

OptRefs is an array based collection of optional values, that uses nulls for implementation. The collection use should not have to interact with the null values directly.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptRefs
  2. ArrayLikeBase
  3. AnyVal
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new OptRefs(unsafeArray: Array[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. def apply(index: Int): OptRef[A]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone: OptRefs[A]
  7. def foreach[U](f: (OptRef[A]) => U): Unit

    Performs the effectful function on each member of the collection.

    Performs the effectful function on each member of the collection.

    Definition Classes
    OptRefsArrayLikeBase
  8. def foreachSome(f: (A) => Unit): Unit
  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def lenStr: String

    Just a handy short cut to give the length of this collection as a string.

    Just a handy short cut to give the length of this collection as a string.

    Definition Classes
    ArrayLikeBase
  12. def length: Int

    The number of elements in the collection.

    The number of elements in the collection. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array maybe longer by a multiple of this number.

    Definition Classes
    OptRefsArrayLikeBase
    Annotations
    @inline()
  13. def mapSomes[B, ArrT <: ArrBase[B]](f: (A) => B)(build: ArrBuild[B, ArrT]): ArrT
  14. def setOtherOptRefs[B <: AnyRef](operand: OptRefs[B])(f: (A) => B): Unit
  15. def setSome(index: Int, value: A): OptRefs[A]

    This produces a completely new immutable collection with the element in the new collection set to the given value.

    This produces a completely new immutable collection with the element in the new collection set to the given value. The Old collection remains unchanged. If you are initialising the collection in an encapsulated space before sharing a references to the collection the unsafeSetSome method is preferred.

  16. def toString(): String
    Definition Classes
    Any
  17. val unsafeArray: Array[A]
  18. def unsafeSet(index: Int, value: OptRef[A]): Unit
  19. def unsafeSetNone(index: Int): Unit
  20. def unsafeSetSome(index: Int, value: A): Unit

Inherited from ArrayLikeBase[OptRef[A]]

Inherited from AnyVal

Inherited from Any

Ungrouped