Package com.terracottatech.store
Interface Selection.LongSelection
- All Superinterfaces:
Collection<Long>,Iterable<Long>,Selection<Long>,Selection.ComparableSelection<Long>,Selection.NumberSelection<Long>
Long 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
-
longStream
LongStream longStream() -
sum
Description copied from interface:Selection.NumberSelectionSum the numeric elements in this Selection, return 0 if there are none.- Specified by:
sumin interfaceSelection.NumberSelection<Long>- Returns:
- sum of the selection
-