Modul speiger.src.collections
Klasse CharCollections.SynchronizedCollection
java.lang.Object
speiger.src.collections.chars.utils.CharCollections.SynchronizedCollection
- Alle implementierten Schnittstellen:
Iterable<Character>,Collection<Character>,CharCollection,CharIterable,ISizeProvider
- Umschließende Klasse:
CharCollections
Synchronized Collection Wrapper for the synchronizedCollection function
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(char o) A Type-Specific add function to reduce (un)boxingbooleanaddAll(char[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(Collection<? extends Character> c) booleanA Type-Specific addAll function to reduce (un)boxingvoidclear()booleancontains(char o) A Type-Specific contains function to reduce (un)boxingbooleancontainsAll(Collection<?> c) Veraltet.booleanA Type-Specific containsAll function to reduce (un)boxingbooleancontainsAny(Collection<?> c) Veraltet.booleanA Type-Specific containsAny function to reduce (un)boxingcopy()A Function that does a shallow clone of the Collection itself.intcount(CharPredicate filter) Helper function to reduce stream usage that allows to count the valid elements.booleancharfindFirst(CharPredicate filter) Helper function to reduce stream usage that allows to filter for the first match.<E> voidforEach(E input, ObjectCharConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidVeraltet.voidforEach(CharConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntCharConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.inthashCode()booleanisEmpty()iterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanmatchesAll(CharPredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(CharPredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(CharPredicate filter) Helper function to reduce stream usage that allows to filter for no matches.charreduce(char identity, CharCharUnaryOperator operator) Performs a reduction on the elements of this Iterablecharreduce(CharCharUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremChar(char o) A Type-Specific remove function that reduces (un)boxing.booleanremIf(IntPredicate filter) A Type-Specific removeIf function to reduce (un)boxing.booleanVeraltet.booleanremoveAll(Collection<?> c) Veraltet.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanretainAll(Collection<?> c) Veraltet.booleanA Type-Specific retainAll function that reduces (un)boxing.booleanA Type-Specific retainAll function that reduces (un)boxing.intsize()Object[]toArray()<T> T[]toArray(T[] a) char[]A Type-Specific toArray function that delegates toCharCollection.toCharArray(char[])with a newly created array.char[]toCharArray(char[] a) A Type-Specific toArray function that reduces (un)boxing.toString()Von Schnittstelle geerbte Methoden speiger.src.collections.chars.collections.CharCollection
add, addAll, addAll, contains, parallelPrimitiveStream, pour, primitiveStream, removeIf, spliterator, synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.chars.collections.CharIterable
arrayflatMap, asAsync, distinct, filter, flatMap, limit, map, peek, pourAsList, pourAsSet, repeat, sortedVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArray
-
Methodendetails
-
add
public boolean add(char o) Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific add function to reduce (un)boxing- Angegeben von:
addin SchnittstelleCharCollection- Parameter:
o- the element that should be added- Gibt zurück:
- true if the element was added to the collection
-
addAll
- Angegeben von:
addAllin SchnittstelleCollection<Character>
-
addAll
Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleCharCollection- Parameter:
c- the collection of elements that should be added- Gibt zurück:
- true if elements were added into the collection
-
addAll
public boolean addAll(char[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleCharCollection- Parameter:
e- the elements that should be addedoffset- where to start within the arraylength- how many elements of the array should be added- Gibt zurück:
- if the collection was modified
-
contains
public boolean contains(char o) Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific contains function to reduce (un)boxing- Angegeben von:
containsin SchnittstelleCharCollection- Parameter:
o- the element that is checked for- Gibt zurück:
- true if the element is found in the collection
-
containsAll
Veraltet.- Angegeben von:
containsAllin SchnittstelleCollection<Character>
-
containsAny
Veraltet.Beschreibung aus Schnittstelle kopiert:CharCollectionReturns true if any element of the Collection is found in the provided collection. A Small Optimization function to find out of any element is present when comparing collections and not all of them.- Angegeben von:
containsAnyin SchnittstelleCharCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found.
-
containsAll
Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific containsAll function to reduce (un)boxing- Angegeben von:
containsAllin SchnittstelleCharCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if all the element is found in the collection
-
containsAny
Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific containsAny function to reduce (un)boxing- Angegeben von:
containsAnyin SchnittstelleCharCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found
-
size
public int size()- Angegeben von:
sizein SchnittstelleCollection<Character>- Angegeben von:
sizein SchnittstelleISizeProvider- Gibt zurück:
- the size of the implementing Collection
-
isEmpty
public boolean isEmpty()- Angegeben von:
isEmptyin SchnittstelleCollection<Character>
-
iterator
Beschreibung aus Schnittstelle kopiert:CharCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCharCollection- Angegeben von:
iteratorin SchnittstelleCharIterable- Angegeben von:
iteratorin SchnittstelleCollection<Character>- Angegeben von:
iteratorin SchnittstelleIterable<Character>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
copy
Beschreibung aus Schnittstelle kopiert:CharCollectionA Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk- Angegeben von:
copyin SchnittstelleCharCollection- Gibt zurück:
- a Shallow Copy of the collection
-
remove
Veraltet.Beschreibung aus Schnittstelle kopiert:CharCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleCharCollection- Angegeben von:
removein SchnittstelleCollection<Character>
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Character>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Character>
-
remChar
public boolean remChar(char o) Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific remove function that reduces (un)boxing.- Angegeben von:
remCharin SchnittstelleCharCollection- Parameter:
o- the element that should be removed- Gibt zurück:
- true if the element was removed
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific removeAll function that reduces (un)boxing.- Angegeben von:
removeAllin SchnittstelleCharCollection- Parameter:
c- the collection of elements that should be removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific removeAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
removeAllin SchnittstelleCharCollection- Parameter:
c- the collection of elements that should be removedr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific retainAll function that reduces (un)boxing.- Angegeben von:
retainAllin SchnittstelleCharCollection- Parameter:
c- the collection of elements that should be kept- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific retainAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
retainAllin SchnittstelleCharCollection- Parameter:
c- the collection of elements that should be keptr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
remIf
Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Angegeben von:
remIfin SchnittstelleCharCollection- Parameter:
filter- Filters the elements that should be removed- Gibt zurück:
- true if the collection was modified
- Siehe auch:
-
clear
public void clear()- Angegeben von:
clearin SchnittstelleCollection<Character>
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Character>
-
toArray
public <T> T[] toArray(T[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Character>
-
toCharArray
public char[] toCharArray()Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific toArray function that delegates toCharCollection.toCharArray(char[])with a newly created array.- Angegeben von:
toCharArrayin SchnittstelleCharCollection- Angegeben von:
toCharArrayin SchnittstelleCharIterable- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toCharArray
public char[] toCharArray(char[] a) Beschreibung aus Schnittstelle kopiert:CharCollectionA Type-Specific toArray function that reduces (un)boxing.- Angegeben von:
toCharArrayin SchnittstelleCharCollection- Parameter:
a- array that the elements should be injected to. If null or to small a new array with the right size is created- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
forEach
Beschreibung aus Schnittstelle kopiert:CharIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleCharIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEach
Veraltet.Beschreibung aus Schnittstelle kopiert:CharIterableThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
forEachin SchnittstelleCharIterable- Angegeben von:
forEachin SchnittstelleIterable<Character>
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:CharIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleCharIterable- Parameter:
action- The action to be performed for each element
-
hashCode
public int hashCode()- Angegeben von:
hashCodein SchnittstelleCollection<Character>- Setzt außer Kraft:
hashCodein KlasseObject
-
equals
- Angegeben von:
equalsin SchnittstelleCollection<Character>- Setzt außer Kraft:
equalsin KlasseObject
-
toString
-
forEach
Beschreibung aus Schnittstelle kopiert:CharIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleCharIterable- Typparameter:
E- the generic type of the Object- Parameter:
input- the object that should be includedaction- The action to be performed for each element
-
matchesAny
Beschreibung aus Schnittstelle kopiert:CharIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleCharIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:CharIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleCharIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:CharIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleCharIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
reduce
Beschreibung aus Schnittstelle kopiert:CharIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleCharIterable- Parameter:
identity- the start valueoperator- the operation that should be applied- Gibt zurück:
- the reduction result, returns identity if nothing was found
-
reduce
Beschreibung aus Schnittstelle kopiert:CharIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleCharIterable- Parameter:
operator- the operation that should be applied- Gibt zurück:
- the reduction result, returns null value if nothing was found
-
findFirst
Beschreibung aus Schnittstelle kopiert:CharIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleCharIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
count
Beschreibung aus Schnittstelle kopiert:CharIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleCharIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-