Class/Object

com.github.arturopala.bufferandslice

IntSlice

Related Docs: object IntSlice | package bufferandslice

Permalink

final class IntSlice extends ArraySliceLike[Int]

Lazy, specialized slice of the array of integers.

Note

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

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

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: (Int) ⇒ A): (Int) ⇒ A

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

    Permalink

    Returns value at the given index withing the range.

    Returns value at the given index withing the range.

    Definition Classes
    ArraySliceLikeSlice → Function1
  6. val array: Array[Int]

    Permalink

    Attributes
    protected
    Definition Classes
    IntSliceArraySliceLike
  7. final def asArray: Array[Int]

    Permalink

    Returns a minimal copy of an underlying array, trimmed to the actual range.

    Returns a minimal copy of an underlying array, trimmed to the actual range.

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

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

    Permalink

    Returns new iterable of Slice values.

    Returns new iterable of Slice values.

    Definition Classes
    ArraySliceLikeSlice
  10. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. final def copyToArray[T1 >: Int](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
    ArraySliceLikeSlice
    Annotations
    @inline()
  13. final def count(pred: (Int) ⇒ Boolean): Int

    Permalink

    Counts values fulfilling the predicate.

    Counts values fulfilling the predicate.

    Definition Classes
    ArraySliceLikeSlice
  14. final def detach: IntSlice.this.type

    Permalink

    Detaches a slice creating a trimmed copy of an underlying data, if needed.

    Detaches a slice creating a trimmed copy of an underlying data, if needed. Subsequent detach operations will return the same instance without making new copies.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  15. val detached: Boolean

    Permalink

    Attributes
    protected
    Definition Classes
    IntSliceArraySliceLike
  16. final def drop(n: Int): IntSlice.this.type

    Permalink

    Lazily narrows Slice to exclude first N items.

    Lazily narrows Slice to exclude first N items.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  17. final def dropRight(n: Int): IntSlice.this.type

    Permalink

    Lazily narrows Slice to exclude last N items.

    Lazily narrows Slice to exclude last N items.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    ArraySliceLike → AnyRef → Any
  20. final def exists(pred: (Int) ⇒ 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
    ArraySliceLikeSlice
  21. def finalize(): Unit

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

    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
    ArraySliceLikeSlice
  23. val fromIndex: Int

    Permalink

    Attributes
    protected
    Definition Classes
    IntSliceArraySliceLike
  24. final def get(index: Int): Option[Int]

    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
    ArraySliceLikeSlice
  25. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    ArraySliceLike → AnyRef → Any
  27. final def head: Int

    Permalink

    Returns first value in the Slice.

    Returns first value in the Slice.

    Definition Classes
    ArraySliceLikeSlice
  28. final def headOption: Option[Int]

    Permalink

    Returns first value in the Slice.

    Returns first value in the Slice.

    Definition Classes
    ArraySliceLikeSlice
  29. final def init: IntSlice.this.type

    Permalink

    Returns the Slice without last value.

    Returns the Slice without last value.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  30. final def isEmpty: Boolean

    Permalink

    Returns true if Slice has values, otherwise false.

    Returns true if Slice has values, otherwise false.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  31. final def isInstanceOf[T0]: Boolean

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

    Permalink

    Returns iterator over slice's values fulfilling the predicate.

    Returns iterator over slice's values fulfilling the predicate.

    Definition Classes
    ArraySliceLikeSlice
  33. final def iterator: Iterator[Int]

    Permalink

    Returns iterator over slice's values.

    Returns iterator over slice's values.

    Definition Classes
    ArraySliceLikeSlice
  34. final def last: Int

    Permalink

    Returns the last value in the Slice.

    Returns the last value in the Slice.

    Definition Classes
    ArraySliceLikeSlice
  35. final def lastOption: Option[Int]

    Permalink

    Returns the last value in the Slice.

    Returns the last value in the Slice.

    Definition Classes
    ArraySliceLikeSlice
  36. final val length: Int

    Permalink

    Sliced range length.

    Sliced range length.

    Definition Classes
    ArraySliceLikeSlice
  37. final def map[K](f: (Int) ⇒ K): Slice[K]

    Permalink

    Lazily composes mapping function and returns new LazyMapArraySlice.

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

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  38. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. 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()
  40. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  42. final def reverseIterator(pred: (Int) ⇒ Boolean): Iterator[Int]

    Permalink

    Returns iterator over slice's values, fulfilling the predicate, in the reverse order.

    Returns iterator over slice's values, fulfilling the predicate, in the reverse order.

    Definition Classes
    ArraySliceLikeSlice
  43. final def reverseIterator: Iterator[Int]

    Permalink

    Returns iterator over slice's values in the reverse order.

    Returns iterator over slice's values in the reverse order.

    Definition Classes
    ArraySliceLikeSlice
  44. final def slice(from: Int, to: Int): IntSlice.this.type

    Permalink

    Lazily narrows Slice to provided range.

    Lazily narrows Slice to provided range.

    Definition Classes
    ArraySliceLikeSlice
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. final def tail: IntSlice.this.type

    Permalink

    Returns the Slice without first value.

    Returns the Slice without first value.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  47. final def take(n: Int): IntSlice.this.type

    Permalink

    Lazily narrows Slice to first N items.

    Lazily narrows Slice to first N items.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  48. final def takeRight(n: Int): IntSlice.this.type

    Permalink

    Lazily narrows Slice to last N items.

    Lazily narrows Slice to last N items.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  49. final def toArray[T1 >: Int](implicit arg0: ClassTag[T1]): Array[T1]

    Permalink

    Returns a minimal copy of an underlying array, trimmed to the actual range.

    Returns a minimal copy of an underlying array, trimmed to the actual range.

    Definition Classes
    ArraySliceLikeSlice
  50. def toBuffer(implicit tag: ClassTag[Int]): IntBuffer

    Permalink

    Returns buffer with a copy of this Slice.

    Returns buffer with a copy of this Slice.

    Definition Classes
    IntSliceSlice
    Annotations
    @inline()
  51. val toIndex: Int

    Permalink

    Attributes
    protected
    Definition Classes
    IntSliceArraySliceLike
  52. final def toList: List[Int]

    Permalink

    Returns new list of Slice values.

    Returns new list of Slice values.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  53. final def toSeq: Seq[Int]

    Permalink

    Returns new sequence of Slice values.

    Returns new sequence of Slice values.

    Definition Classes
    ArraySliceLikeSlice
    Annotations
    @inline()
  54. final def toString(): String

    Permalink
    Definition Classes
    ArraySliceLike → Function1 → AnyRef → Any
  55. final def update[T1 >: Int](index: Int, value: T1)(implicit arg0: ClassTag[T1]): Slice[T1]

    Permalink

    Creates a copy of the slice with modified value.

    Creates a copy of the slice with modified value.

    Definition Classes
    ArraySliceLikeSlice
  56. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. def wrap(fromIndex: Int, toIndex: Int, array: Array[Int], detached: Boolean): IntSlice.this.type

    Permalink

    Wraps an array preserving current Slice type.

    Wraps an array preserving current Slice type.

    Attributes
    protected
    Definition Classes
    IntSliceArraySliceLike

Inherited from ArraySliceLike[Int]

Inherited from Slice[Int]

Inherited from (Int) ⇒ Int

Inherited from AnyRef

Inherited from Any

Properties

Read

Access

Transform

Aggregate

Iterate

Export

Internal

Ungrouped