Package io.aether.utils.flow
Interface FlowCompleted<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.aether.utils.flow.Flow
Flow.SplitComparator<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intcount()Counts the number of elements in the flow.default Trandom()Returns a random element from the flow.default @NotNull java.lang.Object[]toArray()Collects elements into an object array.default @NotNull T[]toArray(@NotNull java.lang.Class<? super T> arrayType)Collects elements into an array of the specified type.default @NotNull java.util.List<T>toList()Collects elements into a list.default <K,V>
@NotNull java.util.Map<K,V>toMap(AFunction<T,K> keyFactory, AFunction<T,V> valFactory)Collects elements into a map using key and value extraction functions.-
Methods inherited from interface io.aether.utils.flow.Flow
add, addAll, addAll, addAll, addAllEls, allMap, allMatch, anyMatch, anyMatchObj, apply, cast, crossSelf, crossSelf, distinct, errorIf, errorIf, errorIf, errorIf, filter, filterByType, filterExclude, filterNot, filterNotNull, filterNotType, flatMap, flatMap1, flatMap2, flatMap3, flatMap4, foreach, getFirst, getFirst, getFirstOrNull, getFirstOrNull, ifEmpty, ifEmpty, ifError, ignoreError, isEmpty, isNotEmpty, iterator, join, join, join, join, join, join, joinD, joinD, joinD, joinN, limit, map, mapToBoolean, mapToInt, mapToLong, mapToShort, mapToString, mapToType, mapToType, max, max, min, min, noneMatch, noneMatchObj, onDone, removeFromCollection, reverse, run, setTo, shuffle, skip, skipLast, sort, sort, split, to, to, toCMapExtractKey, toCollection, toImmutableList, toIterable, toMap, toMapExtractKey, toMapExtractKey, toMapI2O, toMapL2O, toMapO2I, toSet, toSupplier
-
-
-
-
Method Detail
-
count
int count()
Description copied from interface:FlowCounts the number of elements in the flow.
-
random
default T random()
Description copied from interface:FlowReturns a random element from the flow.
-
toList
@NotNull default @NotNull java.util.List<T> toList()
Description copied from interface:FlowCollects elements into a list.
-
toMap
@NotNull default <K,V> @NotNull java.util.Map<K,V> toMap(AFunction<T,K> keyFactory, AFunction<T,V> valFactory)
Description copied from interface:FlowCollects elements into a map using key and value extraction functions.
-
toArray
@NotNull default @NotNull T[] toArray(@NotNull @NotNull java.lang.Class<? super T> arrayType)
Description copied from interface:FlowCollects elements into an array of the specified type.
-
-