Modul speiger.src.collections
Klasse AbstractObjectCollection<T>
java.lang.Object
java.util.AbstractCollection<T>
speiger.src.collections.objects.collections.AbstractObjectCollection<T>
- Typparameter:
T- the keyType of elements maintained by this Collection
- Alle implementierten Schnittstellen:
Iterable<T>,Collection<T>,ObjectCollection<T>,ObjectIterable<T>,ISizeProvider
- Bekannte direkte Unterklassen:
AbstractObjectList,AbstractObjectSet,ObjectCollections.EmptyCollection
public abstract class AbstractObjectCollection<T>
extends AbstractCollection<T>
implements ObjectCollection<T>
Abstract Type Specific Collection that reduces boxing/unboxing
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanaddAll(ObjectCollection<T> c) A Type-Specific addAll function to reduce (un)boxingbooleancontainsAll(Collection<?> c) booleanA Type-Specific implementation of containsAll.booleancontainsAny(Collection<?> c) This implementation iterates over the elements of the collection and checks if they are stored in this collectionbooleanThis implementation iterates over the elements of the collection and checks if they are stored in this collection.copy()A Function that does a shallow clone of the Collection itself.abstract ObjectIterator<T>iterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanA Type-Specific implementation of removeAll.booleanremoveAll(ObjectCollection<T> c, Consumer<T> r) A Type-Specific removeAll function that reduces (un)boxing.booleanA Type-Specific implementation of retainAll.booleanretainAll(ObjectCollection<T> c, Consumer<T> r) A Type-Specific retainAll function that reduces (un)boxing.Von Klasse geerbte Methoden java.util.AbstractCollection
add, addAll, clear, contains, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Collection
add, addAll, clear, contains, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, stream, toArray, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
sizeVon Schnittstelle geerbte Methoden speiger.src.collections.objects.collections.ObjectCollection
addAll, 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
-
AbstractObjectCollection
public AbstractObjectCollection()
-
-
Methodendetails
-
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 KlasseAbstractCollection<T>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
addAll
Beschreibung aus Schnittstelle kopiert:ObjectCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleObjectCollection<T>- Parameter:
c- the collection of elements that should be added- Gibt zurück:
- true if elements were added into the 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>- Gibt zurück:
- a Shallow Copy of the collection
-
containsAll
A Type-Specific implementation of containsAll. This implementation iterates over all elements and checks all elements are present in the other collection.- Angegeben von:
containsAllin SchnittstelleObjectCollection<T>- Parameter:
c- the collection that should be checked if it contains all elements.- Gibt zurück:
- true if all elements were found in the collection
- Löst aus:
NullPointerException- if the collection is null
-
containsAll
- Angegeben von:
containsAllin SchnittstelleCollection<T>- Setzt außer Kraft:
containsAllin KlasseAbstractCollection<T>
-
containsAny
This implementation iterates over the elements of the collection and checks if they are stored in this collection- Angegeben von:
containsAnyin SchnittstelleObjectCollection<T>- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
- Löst aus:
NullPointerException- if the collection is null
-
containsAny
This implementation iterates over the elements of the collection and checks if they are stored in this collection.- Angegeben von:
containsAnyin SchnittstelleObjectCollection<T>- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
- Löst aus:
NullPointerException- if the collection is null
-
removeAll
A 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>- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Löst aus:
NullPointerException- if the collection is null- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:ObjectCollectionA 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 SchnittstelleObjectCollection<T>- 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
A 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>- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Löst aus:
NullPointerException- if the collection is null- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:ObjectCollectionA 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 SchnittstelleObjectCollection<T>- 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:
-