Class/Object

com.github.arturopala.bufferandslice

LazyMapArraySlice

Related Docs: object LazyMapArraySlice | package bufferandslice

Permalink

abstract class LazyMapArraySlice[T] extends Slice[T]

Lazily mapped slice of an underlying array.

T

type of the array's items

Note

Truly immutable only if an underlying array kept private, or if detached.

Linear Supertypes
Slice[T], (Int) ⇒ T, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. LazyMapArraySlice
  2. Slice
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type A

    Permalink

    Type of the underlying array items.

Abstract Value Members

  1. abstract val array: Array[A]

    Permalink

    Underlying array.

  2. abstract val mapF: (A) ⇒ T

    Permalink

    Value mapping function.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (T) ⇒ A): (Int) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def apply(index: Int): T

    Permalink

    Returns value at the given index.

    Returns value at the given index.

    Definition Classes
    Slice → Function1
  6. final def asArray: Array[T]

    Permalink

    Returns an array of mapped values.

    Returns an array of mapped values.

    Definition Classes
    LazyMapArraySliceSlice
  7. final def asBuffer: Buffer[T]

    Permalink

    Returns a buffer with a copy of this Slice.

    Returns a buffer with a copy of this Slice.

    Definition Classes
    LazyMapArraySliceSlice
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. final def asIterable: Iterable[T]

    Permalink

    Returns new iterable of Slice values.

    Returns new iterable of Slice values.

    Definition Classes
    Slice
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compose[A](g: (A) ⇒ Int): (A) ⇒ T

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. def copyToArray[T1 >: T](targetIndex: Int, targetArray: Array[T1]): Array[T1]

    Permalink

    Dumps content to the array, starting from an index.

    Dumps content to the array, starting from an index.

    Definition Classes
    Slice
  13. final def count(pred: (T) ⇒ Boolean): Int

    Permalink

    Counts values fulfilling the predicate.

    Counts values fulfilling the predicate.

    Definition Classes
    Slice
  14. final def detach: LazyMapArraySlice.this.type

    Permalink

    Detaches a slice creating a trimmed copy of an underlying data.

    Detaches a slice creating a trimmed copy of an underlying data.

    Definition Classes
    LazyMapArraySliceSlice
  15. final def drop(n: Int): LazyMapArraySlice.this.type

    Permalink

    Lazily narrows Slice to exclude first N items.

    Lazily narrows Slice to exclude first N items.

    Definition Classes
    Slice
    Annotations
    @inline()
  16. final def dropRight(n: Int): LazyMapArraySlice.this.type

    Permalink

    Lazily narrows Slice to exclude last N items.

    Lazily narrows Slice to exclude last N items.

    Definition Classes
    Slice
    Annotations
    @inline()
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    Slice → AnyRef → Any
  19. final def exists(pred: (T) ⇒ Boolean): Boolean

    Permalink

    Returns true if any value fulfills the predicate, or false.

    Returns true if any value fulfills the predicate, or false.

    Definition Classes
    Slice
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def find(pred: (T) ⇒ Boolean): Option[T]

    Permalink

    Returns Some of the first value fulfilling the predicate, or None.

    Returns Some of the first value fulfilling the predicate, or None.

    Definition Classes
    Slice
  22. final def fold(initial: T)(f: (T, T) ⇒ T): T

    Permalink

    Combines from left to right all elements, starting with initial.

    Combines from left to right all elements, starting with initial.

    Definition Classes
    Slice
  23. final def foldLeft[R](initial: R)(f: (R, T) ⇒ R): R

    Permalink

    Folds from left to right all elements, starting with initial.

    Folds from left to right all elements, starting with initial.

    Definition Classes
    Slice
  24. final def foldRight[R](initial: R)(f: (T, R) ⇒ R): R

    Permalink

    Folds from right to left all elements, starting with initial.

    Folds from right to left all elements, starting with initial.

    Definition Classes
    Slice
  25. final def get(index: Int): Option[T]

    Permalink

    Returns Some of the value at the index, or None if index outside of range.

    Returns Some of the value at the index, or None if index outside of range.

    Definition Classes
    Slice
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def hashCode(): Int

    Permalink
    Definition Classes
    Slice → AnyRef → Any
  28. final def head: T

    Permalink

    Returns first value in the Slice.

    Returns first value in the Slice.

    Definition Classes
    Slice
  29. final def headOption: Option[T]

    Permalink

    Returns first value in the Slice.

    Returns first value in the Slice.

    Definition Classes
    Slice
  30. final def indexIterator(pred: (T) ⇒ Boolean): Iterator[Int]

    Permalink

    Returns iterator over Slice indexes of values fulfilling the predicate.

    Returns iterator over Slice indexes of values fulfilling the predicate.

    Definition Classes
    Slice
  31. final def init: LazyMapArraySlice.this.type

    Permalink

    Returns the Slice without last value.

    Returns the Slice without last value.

    Definition Classes
    Slice
    Annotations
    @inline()
  32. final def isEmpty: Boolean

    Permalink

    Returns true if Slice has values, otherwise false.

    Returns true if Slice has values, otherwise false.

    Definition Classes
    Slice
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. final def iterator(pred: (T) ⇒ Boolean): Iterator[T]

    Permalink

    Returns iterator over Slice values fulfilling the predicate.

    Returns iterator over Slice values fulfilling the predicate.

    Definition Classes
    Slice
  35. final def iterator: Iterator[T]

    Permalink

    Returns iterator over Slice values.

    Returns iterator over Slice values.

    Definition Classes
    Slice
  36. final def last: T

    Permalink

    Returns the last value in the Slice.

    Returns the last value in the Slice.

    Definition Classes
    Slice
  37. final def lastOption: Option[T]

    Permalink

    Returns the last value in the Slice.

    Returns the last value in the Slice.

    Definition Classes
    Slice
  38. final val length: Int

    Permalink

    Sliced range length.

    Sliced range length.

    Definition Classes
    LazyMapArraySliceSlice
  39. final def map[K](f: (T) ⇒ K): LazyMapArraySlice[K]

    Permalink

    Lazily composes mapping function and returns new Slice.

    Lazily composes mapping function and returns new Slice. Does not modify nor copy underlying array.

    Definition Classes
    LazyMapArraySliceSlice
  40. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. final def nonEmpty: Boolean

    Permalink

    Returns true if Slice has values, otherwise false.

    Returns true if Slice has values, otherwise false.

    Definition Classes
    Slice
    Annotations
    @inline()
  42. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  43. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def read(index: Int): T

    Permalink

    Returns value at the given index

    Returns value at the given index

    Attributes
    protected
    Definition Classes
    LazyMapArraySliceSlice
    Annotations
    @inline()
  45. final def reduce(f: (T, T) ⇒ T): T

    Permalink

    Combines from right to left all elements.

    Combines from right to left all elements.

    Definition Classes
    Slice
  46. final def reverseIndexIterator(pred: (T) ⇒ Boolean): Iterator[Int]

    Permalink

    Returns iterator over Slice indexes of values fulfilling the predicate, in the reverse order.

    Returns iterator over Slice indexes of values fulfilling the predicate, in the reverse order.

    Definition Classes
    Slice
  47. final def reverseIterator(pred: (T) ⇒ Boolean): Iterator[T]

    Permalink

    Returns iterator over Slice values fulfilling the predicate, in the reverse order.

    Returns iterator over Slice values fulfilling the predicate, in the reverse order.

    Definition Classes
    Slice
  48. final def reverseIterator: Iterator[T]

    Permalink

    Returns iterator over Slice values in the reverse order.

    Returns iterator over Slice values in the reverse order.

    Definition Classes
    Slice
  49. final def slice(from: Int, to: Int): LazyMapArraySlice.this.type

    Permalink

    Lazily narrows Slice to provided range.

    Lazily narrows Slice to provided range.

    Definition Classes
    LazyMapArraySliceSlice
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. final def tail: LazyMapArraySlice.this.type

    Permalink

    Returns the Slice without first value.

    Returns the Slice without first value.

    Definition Classes
    Slice
    Annotations
    @inline()
  52. final def take(n: Int): LazyMapArraySlice.this.type

    Permalink

    Lazily narrows Slice to first N items.

    Lazily narrows Slice to first N items.

    Definition Classes
    Slice
    Annotations
    @inline()
  53. final def takeRight(n: Int): LazyMapArraySlice.this.type

    Permalink

    Lazily narrows Slice to last N items.

    Lazily narrows Slice to last N items.

    Definition Classes
    Slice
    Annotations
    @inline()
  54. final def toArray[T1 >: T](implicit arg0: ClassTag[T1]): Array[T1]

    Permalink

    Returns a trimmed copy of an underlying array.

    Returns a trimmed copy of an underlying array.

    Definition Classes
    Slice
  55. final def toBuffer[T1 >: T]: Buffer[T1]

    Permalink

    Returns buffer with a copy of this Slice.

    Returns buffer with a copy of this Slice.

    Definition Classes
    LazyMapArraySliceSlice
  56. final def toList: List[T]

    Permalink

    Returns new list of Slice values.

    Returns new list of Slice values.

    Definition Classes
    Slice
    Annotations
    @inline()
  57. final def toSeq: Seq[T]

    Permalink

    Returns new sequence of Slice values.

    Returns new sequence of Slice values.

    Definition Classes
    Slice
    Annotations
    @inline()
  58. final def toString(): String

    Permalink
    Definition Classes
    Slice → Function1 → AnyRef → Any
  59. final def top: Int

    Permalink

    Returns top index value (length-1).

    Returns top index value (length-1).

    Definition Classes
    Slice
    Annotations
    @inline()
  60. final def update[T1 >: T](index: Int, value: T1): Slice[T1]

    Permalink

    Creates a copy of the slice with modified value.

    Creates a copy of the slice with modified value.

    Definition Classes
    LazyMapArraySliceSlice
  61. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Slice[T]

Inherited from (Int) ⇒ T

Inherited from AnyRef

Inherited from Any

Properties

Access

Transform

Aggregate

Iterate

Export

Internal

Ungrouped