final class IntSlice extends Slice[Int]
Lazy, specialized slice of the array of integers.
- Grouped
- Alphabetic
- By Inheritance
- IntSlice
- Slice
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andThen[A](g: (Int) ⇒ A): (Int) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(index: Int): Int
Returns value at the given index withing the range.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asIterable: Iterable[Int]
Returns new iterable of Slice values.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ Int): (A) ⇒ Int
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
count(pred: (Int) ⇒ Boolean): Int
Counts values fulfilling the predicate.
-
def
drop(n: Int): IntSlice
Lazily narrows Slice to exclude first N items.
-
def
dropRight(n: Int): IntSlice
Lazily narrows Slice to exclude last N items.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- IntSlice → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- IntSlice → AnyRef → Any
-
def
head: Int
Returns first value in the Slice.
-
def
headOption: Option[Int]
Returns first value in the Slice.
-
def
init: IntSlice
Returns the Slice without last value.
-
def
isEmpty: Boolean
Returns true if Slice has values, otherwise false.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterator: Iterator[Int]
Returns iterator over Slice values.
-
def
last: Int
Returns the last value in the Slice.
-
def
lastOption: Option[Int]
Returns the last value in the Slice.
-
val
length: Int
Sliced range length.
-
def
map[B](f: (Int) ⇒ B): Slice[B]
Lazily composes mapping function and returns new Slice.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
nonEmpty: Boolean
Returns true if Slice has values, otherwise false.
Returns true if Slice has values, otherwise false.
- Definition Classes
- Slice
- Annotations
- @inline()
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
reverseIterator(pred: (Int) ⇒ Boolean): Iterator[Int]
Returns iterator over Slice values, fulfilling the predicate, in the reverse order.
-
def
reverseIterator: Iterator[Int]
Returns iterator over Slice values in the reverse order.
-
def
sameElements(iterator1: Iterator[Int], iterator2: Iterator[Int]): Boolean
Checks if two iterators would return same elements.
-
def
slice(from: Int, to: Int): IntSlice
Lazily narrows Slice to provided range.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: IntSlice
Returns the Slice without first value.
-
def
take(n: Int): IntSlice
Lazily narrows Slice to first N items.
-
def
takeRight(n: Int): IntSlice
Lazily narrows Slice to last N items.
-
def
toArray(implicit tag: ClassTag[Int]): Array[Int]
Returns minimal copy of an underlying array, trimmed to the actual range.
-
def
toBuffer: IntBuffer
Returns a copy of the underlying array as a buffer.
-
def
toBuffer(implicit tag: ClassTag[Int]): Buffer[Int]
Returns buffer with a copy of this Slice.
-
def
toList: List[Int]
Returns new list of Slice values.
-
def
toString(): String
- Definition Classes
- IntSlice → Function1 → AnyRef → Any
-
def
update(index: Int, value: Int): IntSlice
Creates a copy of the slice with modified value.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()