Interface Slice<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidforEach(Consumer<? super T> action)List<T>getItems()Return items contained in the slice.longgetSize()Returns the size of the slice.default Iterator<T>iterator()default Spliterator<T>spliterator()
-
-
-
Method Detail
-
getSize
long getSize()
Returns the size of the slice.- Returns:
- the number of items.
-
spliterator
default Spliterator<T> spliterator()
- Specified by:
spliteratorin interfaceIterable<T>
-
-