Modul speiger.src.collections
Schnittstelle BooleanIterable
- Alle bekannten Unterschnittstellen:
BooleanCollection,BooleanList,BooleanPriorityDequeue,BooleanPriorityQueue
- Alle bekannten Implementierungsklassen:
AbstractBooleanCollection,AbstractBooleanList,AbstractBooleanPriorityQueue,BooleanArrayFIFOQueue,BooleanArrayList,BooleanArrayPriorityQueue,BooleanCollections.EmptyCollection,BooleanCollections.SynchronizedCollection,BooleanCollections.UnmodifiableCollection,BooleanHeapPriorityQueue,BooleanLinkedList,BooleanPriorityQueues.SynchronizedPriorityDequeue,BooleanPriorityQueues.SynchronizedPriorityQueue,CopyOnWriteBooleanArrayList,ImmutableBooleanList
A Type-Specific
Iterable that reduces (un)boxing-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault <E> ObjectIterable<E>arrayflatMap(BooleanFunction<E[]> mapper) A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.default BooleanAsyncBuilderasAsync()Creates a Async Builder for moving work of the thread.default intcount(BooleanPredicate filter) Helper function to reduce stream usage that allows to count the valid elements.default BooleanIterabledistinct()A Helper function to reduce the usage of Streams and allows to filter out duplicated elementsdefault BooleanIterablefilter(BooleanPredicate filter) A Helper function to reduce the usage of Streams and allows to filter out unwanted elementsdefault booleanfindFirst(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for the first match.default <E,V extends Iterable<E>>
ObjectIterable<E>flatMap(BooleanFunction<V> mapper) A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.default <E> voidforEach(E input, ObjectBooleanConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.default voidVeraltet.Please use the corresponding type-specific function instead.default voidforEach(BooleanConsumer action) A Type Specific foreach function that reduces (un)boxingdefault voidforEachIndexed(IntBooleanConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.iterator()Returns an iterator over elements of typeT.default BooleanIterablelimit(long limit) A Helper function to reduce the usage of Streams and allows to limit the amount of elementsdefault <E> ObjectIterable<E>map(BooleanFunction<E> mapper) A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.default booleanmatchesAll(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for all matches.default booleanmatchesAny(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for any matches.default booleanmatchesNone(BooleanPredicate filter) Helper function to reduce stream usage that allows to filter for no matches.default BooleanIterablepeek(BooleanConsumer action) A Helper function to reduce the usage of Streams and allows to preview elements before they are iterated throughdefault <E extends BooleanCollection>
Epour(E collection) A Helper function to reduce the usage of Streams and allows to collect all elementsdefault BooleanListA Helper function that reduces the usage of streams and allows to collect all elements as a ArrayListdefault booleanreduce(boolean identity, BooleanBooleanUnaryOperator operator) Performs a reduction on the elements of this Iterabledefault booleanreduce(BooleanBooleanUnaryOperator operator) Performs a reduction on the elements of this Iterabledefault BooleanIterablerepeat(int repeats) A Helper function to reduce the usage of Streams and allows to repeat elements a desired amount of timesdefault BooleanIterablesorted(BooleanComparator sorter) A Helper function to reduce the usage of Streams and allows to sort the elementsdefault BooleanSplititeratorA Type Specific Type Splititerator to reduce boxing/unboxingdefault boolean[]A Helper function that reduces the usage of streams and allows to collect all elements as a Array
-
Methodendetails
-
iterator
BooleanIterator iterator()Returns an iterator over elements of typeT. -
forEach
A Type Specific foreach function that reduces (un)boxing- Parameter:
action- The action to be performed for each element- Löst aus:
NullPointerException- if the specified action is null- Siehe auch:
- ImplSpec:
The default implementation behaves as if:
iterator().forEachRemaining(action);
-
forEach
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
-
forEachIndexed
A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Parameter:
action- The action to be performed for each element- Löst aus:
NullPointerException- if the specified action is null
-
forEach
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Typparameter:
E- the generic type of the Object- Parameter:
input- the object that should be includedaction- The action to be performed for each element- Löst aus:
NullPointerException- if the specified action is null
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleIterable<Boolean>- Gibt zurück:
- type specific splititerator
-
asAsync
Creates a Async Builder for moving work of the thread. It is not designed to split the work to multithreaded work, so using this keep it singlethreaded, but it allows to be moved to another thread.- Gibt zurück:
- a AsyncBuilder
- Siehe auch:
-
map
A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.- Typparameter:
E- The return type.- Parameter:
mapper- the mapping function- Gibt zurück:
- a new Iterable that returns the desired result
-
flatMap
A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.- Typparameter:
E- The return type.V- The return type supplier.- Parameter:
mapper- the flatMapping function- Gibt zurück:
- a new Iterable that returns the desired result
- Note:
- does not support toBooleanArray optimizations.
-
arrayflatMap
A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.- Typparameter:
E- The return type.- Parameter:
mapper- the flatMapping function- Gibt zurück:
- a new Iterable that returns the desired result
- Note:
- does not support toBooleanArray optimizations.
-
filter
A Helper function to reduce the usage of Streams and allows to filter out unwanted elements- Parameter:
filter- the elements that should be kept.- Gibt zurück:
- a Iterable that filtered out all unwanted elements
- Note:
- does not support toBooleanArray optimizations.
-
distinct
A Helper function to reduce the usage of Streams and allows to filter out duplicated elements- Gibt zurück:
- a Iterable that filtered out all duplicated elements
- Note:
- does not support toBooleanArray optimizations.
-
repeat
A Helper function to reduce the usage of Streams and allows to repeat elements a desired amount of times- Parameter:
repeats- how many times the elements should be repeated- Gibt zurück:
- a Iterable that is repeating multiple times
-
limit
A Helper function to reduce the usage of Streams and allows to limit the amount of elements- Parameter:
limit- the amount of elements it should be limited to- Gibt zurück:
- a Iterable that is limited in length
-
sorted
A Helper function to reduce the usage of Streams and allows to sort the elements- Parameter:
sorter- that sorts the elements.- Gibt zurück:
- a Iterable that is sorted
-
peek
A Helper function to reduce the usage of Streams and allows to preview elements before they are iterated through- Parameter:
action- the action that should be applied- Gibt zurück:
- a Peeked Iterable
-
pour
A Helper function to reduce the usage of Streams and allows to collect all elements- Typparameter:
E- the collection type- Parameter:
collection- that the elements should be inserted to- Gibt zurück:
- the input with the desired elements
-
pourAsList
A Helper function that reduces the usage of streams and allows to collect all elements as a ArrayList- Gibt zurück:
- a new ArrayList of all elements
-
toBooleanArray
default boolean[] toBooleanArray()A Helper function that reduces the usage of streams and allows to collect all elements as a Array- Gibt zurück:
- a new Array of all elements
-
matchesAny
Helper function to reduce stream usage that allows to filter for any matches.- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Helper function to reduce stream usage that allows to filter for no matches.- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Helper function to reduce stream usage that allows to filter for all matches.- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
findFirst
Helper function to reduce stream usage that allows to filter for the first match.- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
reduce
Performs a reduction on the elements of this Iterable- Parameter:
identity- the start valueoperator- the operation that should be applied- Gibt zurück:
- the reduction result, returns identity if nothing was found
-
reduce
Performs a reduction on the elements of this Iterable- Parameter:
operator- the operation that should be applied- Gibt zurück:
- the reduction result, returns null value if nothing was found
-
count
Helper function to reduce stream usage that allows to count the valid elements.- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-