Modul speiger.src.collections
Klasse ObjectCollections.EmptyCollection<T>
java.lang.Object
java.util.AbstractCollection<T>
speiger.src.collections.objects.collections.AbstractObjectCollection<T>
speiger.src.collections.objects.utils.ObjectCollections.EmptyCollection<T>
- Typparameter:
T- the keyType of elements maintained by this Collection
- Alle implementierten Schnittstellen:
Iterable<T>,Collection<T>,ObjectCollection<T>,ObjectIterable<T>,ISizeProvider
- Umschließende Klasse:
ObjectCollections
Empty Collection implementation for the empty collection function
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanbooleanaddAll(ObjectCollection<T> c) A Type-Specific addAll function to reduce (un)boxingbooleanA Type-Specific Array based addAll method to reduce the amount of Wrappingvoidclear()booleanbooleancontainsAll(Collection<?> c) booleancontainsAny(Collection<?> c) This implementation iterates over the elements of the collection and checks if they are stored in this collectioncopy()A Function that does a shallow clone of the Collection itself.booleaninthashCode()iterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanVeraltet.booleanremoveAll(Collection<?> c) booleanA Type-Specific implementation of removeAll.booleanbooleanretainAll(Collection<?> c) booleanA Type-Specific implementation of retainAll.intsize()Object[]toArray()<E> E[]toArray(E[] a) Von Klasse geerbte Methoden speiger.src.collections.objects.collections.AbstractObjectCollection
containsAll, containsAny, removeAll, retainAllVon Klasse geerbte Methoden java.util.AbstractCollection
addAll, isEmpty, toStringVon Schnittstelle geerbte Methoden java.util.Collection
addAll, isEmpty, parallelStream, streamVon Schnittstelle geerbte Methoden speiger.src.collections.objects.collections.ObjectCollection
addAll, addAll, pour, spliterator, synchronize, synchronize, toArray, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.objects.collections.ObjectIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEachIndexed, limit, map, mapToBoolean, mapToByte, mapToDouble, mapToFloat, mapToInt, mapToLong, mapToShort, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sorted
-
Konstruktordetails
-
EmptyCollection
public EmptyCollection()
-
-
Methodendetails
-
add
- Angegeben von:
addin SchnittstelleCollection<T>- Setzt außer Kraft:
addin KlasseAbstractCollection<T>
-
addAll
Beschreibung aus Schnittstelle kopiert:ObjectCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleObjectCollection<T>- Setzt außer Kraft:
addAllin KlasseAbstractObjectCollection<T>- Parameter:
c- the collection of elements that should be added- Gibt zurück:
- true if elements were added into the collection
-
addAll
Beschreibung aus Schnittstelle kopiert:ObjectCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- 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
- Angegeben von:
containsin SchnittstelleCollection<T>- Setzt außer Kraft:
containsin KlasseAbstractCollection<T>
-
containsAny
Beschreibung aus Klasse kopiert:AbstractObjectCollectionThis implementation iterates over the elements of the collection and checks if they are stored in this collection- Angegeben von:
containsAnyin SchnittstelleObjectCollection<T>- Setzt außer Kraft:
containsAnyin KlasseAbstractObjectCollection<T>- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
-
containsAll
- Angegeben von:
containsAllin SchnittstelleCollection<T>- Setzt außer Kraft:
containsAllin KlasseAbstractObjectCollection<T>
-
hashCode
public int hashCode()- Angegeben von:
hashCodein SchnittstelleCollection<T>- Setzt außer Kraft:
hashCodein KlasseObject
-
equals
- Angegeben von:
equalsin SchnittstelleCollection<T>- Setzt außer Kraft:
equalsin KlasseObject
-
remove
Veraltet.- Angegeben von:
removein SchnittstelleCollection<T>- Setzt außer Kraft:
removein KlasseAbstractCollection<T>
-
removeAll
- Angegeben von:
removeAllin SchnittstelleCollection<T>- Setzt außer Kraft:
removeAllin KlasseAbstractCollection<T>
-
retainAll
- Angegeben von:
retainAllin SchnittstelleCollection<T>- Setzt außer Kraft:
retainAllin KlasseAbstractCollection<T>
-
removeIf
-
removeAll
Beschreibung aus Klasse kopiert:AbstractObjectCollectionA Type-Specific implementation of removeAll. This Implementation iterates over all elements and removes them as they were found in the other collection.- Angegeben von:
removeAllin SchnittstelleObjectCollection<T>- Setzt außer Kraft:
removeAllin KlasseAbstractObjectCollection<T>- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
retainAll
Beschreibung aus Klasse kopiert:AbstractObjectCollectionA Type-Specific implementation of retainAll. This Implementation iterates over all elements and removes them as they were not found in the other collection.- Angegeben von:
retainAllin SchnittstelleObjectCollection<T>- Setzt außer Kraft:
retainAllin KlasseAbstractObjectCollection<T>- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<T>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<T>
-
toArray
public <E> E[] toArray(E[] a) - Angegeben von:
toArrayin SchnittstelleCollection<T>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<T>
-
iterator
Beschreibung aus Schnittstelle kopiert:ObjectCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<T>- Angegeben von:
iteratorin SchnittstelleIterable<T>- Angegeben von:
iteratorin SchnittstelleObjectCollection<T>- Angegeben von:
iteratorin SchnittstelleObjectIterable<T>- Angegeben von:
iteratorin KlasseAbstractObjectCollection<T>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
clear
public void clear()- Angegeben von:
clearin SchnittstelleCollection<T>- Setzt außer Kraft:
clearin KlasseAbstractCollection<T>
-
size
public int size()- Angegeben von:
sizein SchnittstelleCollection<T>- Angegeben von:
sizein SchnittstelleISizeProvider- Angegeben von:
sizein KlasseAbstractCollection<T>- Gibt zurück:
- the size of the implementing Collection
-
copy
Beschreibung aus Schnittstelle kopiert:ObjectCollectionA 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 SchnittstelleObjectCollection<T>- Setzt außer Kraft:
copyin KlasseAbstractObjectCollection<T>- Gibt zurück:
- a Shallow Copy of the collection
-