Package com.terracottatech.store
Interface Selection.IntSelection
- All Superinterfaces:
Collection<Integer>,Iterable<Integer>,Selection<Integer>,Selection.ComparableSelection<Integer>,Selection.NumberSelection<Integer>
Integer specific Selection
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.terracottatech.store.Selection
Selection.ComparableSelection<T extends Comparable<T>>, Selection.DoubleSelection, Selection.IntSelection, Selection.LongSelection, Selection.NumberSelection<T extends Number & Comparable<T>> -
Method Summary
Methods inherited from interface java.util.Collection
addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, size, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface com.terracottatech.store.Selection
add, clear, first, firstOrElse, firstOrFail, get, getOrElse, getOrFail, last, lastOrElse, lastOrFail, remove, removeAll, removeIf, retainAll, sole, soleOrElseMethods inherited from interface com.terracottatech.store.Selection.ComparableSelection
greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, max, min
-
Method Details
-
intStream
IntStream intStream()Primitive stream- Returns:
- IntStream
-
sum
Description copied from interface:Selection.NumberSelectionSum the numeric elements in this Selection, return 0 if there are none.- Specified by:
sumin interfaceSelection.NumberSelection<Integer>- Returns:
- sum of the selection
-