Modul speiger.src.collections
Schnittstelle ObjectOrderedSet<T>
- Typparameter:
T- the keyType of elements maintained by this Collection
- Alle Superschnittstellen:
Collection<T>,ISizeProvider,Iterable<T>,ObjectCollection<T>,ObjectIterable<T>,ObjectSet<T>,Set<T>
- Alle bekannten Unterschnittstellen:
Byte2BooleanOrderedMap.FastOrderedSet,Byte2ByteOrderedMap.FastOrderedSet,Byte2CharOrderedMap.FastOrderedSet,Byte2DoubleOrderedMap.FastOrderedSet,Byte2FloatOrderedMap.FastOrderedSet,Byte2IntOrderedMap.FastOrderedSet,Byte2LongOrderedMap.FastOrderedSet,Byte2ObjectOrderedMap.FastOrderedSet<V>,Byte2ShortOrderedMap.FastOrderedSet,Char2BooleanOrderedMap.FastOrderedSet,Char2ByteOrderedMap.FastOrderedSet,Char2CharOrderedMap.FastOrderedSet,Char2DoubleOrderedMap.FastOrderedSet,Char2FloatOrderedMap.FastOrderedSet,Char2IntOrderedMap.FastOrderedSet,Char2LongOrderedMap.FastOrderedSet,Char2ObjectOrderedMap.FastOrderedSet<V>,Char2ShortOrderedMap.FastOrderedSet,Double2BooleanOrderedMap.FastOrderedSet,Double2ByteOrderedMap.FastOrderedSet,Double2CharOrderedMap.FastOrderedSet,Double2DoubleOrderedMap.FastOrderedSet,Double2FloatOrderedMap.FastOrderedSet,Double2IntOrderedMap.FastOrderedSet,Double2LongOrderedMap.FastOrderedSet,Double2ObjectOrderedMap.FastOrderedSet<V>,Double2ShortOrderedMap.FastOrderedSet,Float2BooleanOrderedMap.FastOrderedSet,Float2ByteOrderedMap.FastOrderedSet,Float2CharOrderedMap.FastOrderedSet,Float2DoubleOrderedMap.FastOrderedSet,Float2FloatOrderedMap.FastOrderedSet,Float2IntOrderedMap.FastOrderedSet,Float2LongOrderedMap.FastOrderedSet,Float2ObjectOrderedMap.FastOrderedSet<V>,Float2ShortOrderedMap.FastOrderedSet,Int2BooleanOrderedMap.FastOrderedSet,Int2ByteOrderedMap.FastOrderedSet,Int2CharOrderedMap.FastOrderedSet,Int2DoubleOrderedMap.FastOrderedSet,Int2FloatOrderedMap.FastOrderedSet,Int2IntOrderedMap.FastOrderedSet,Int2LongOrderedMap.FastOrderedSet,Int2ObjectOrderedMap.FastOrderedSet<V>,Int2ShortOrderedMap.FastOrderedSet,Long2BooleanOrderedMap.FastOrderedSet,Long2ByteOrderedMap.FastOrderedSet,Long2CharOrderedMap.FastOrderedSet,Long2DoubleOrderedMap.FastOrderedSet,Long2FloatOrderedMap.FastOrderedSet,Long2IntOrderedMap.FastOrderedSet,Long2LongOrderedMap.FastOrderedSet,Long2ObjectOrderedMap.FastOrderedSet<V>,Long2ShortOrderedMap.FastOrderedSet,Object2BooleanOrderedMap.FastOrderedSet<T>,Object2ByteOrderedMap.FastOrderedSet<T>,Object2CharOrderedMap.FastOrderedSet<T>,Object2DoubleOrderedMap.FastOrderedSet<T>,Object2FloatOrderedMap.FastOrderedSet<T>,Object2IntOrderedMap.FastOrderedSet<T>,Object2LongOrderedMap.FastOrderedSet<T>,Object2ObjectOrderedMap.FastOrderedSet<T,,V> Object2ShortOrderedMap.FastOrderedSet<T>,Short2BooleanOrderedMap.FastOrderedSet,Short2ByteOrderedMap.FastOrderedSet,Short2CharOrderedMap.FastOrderedSet,Short2DoubleOrderedMap.FastOrderedSet,Short2FloatOrderedMap.FastOrderedSet,Short2IntOrderedMap.FastOrderedSet,Short2LongOrderedMap.FastOrderedSet,Short2ObjectOrderedMap.FastOrderedSet<V>,Short2ShortOrderedMap.FastOrderedSet
- Alle bekannten Implementierungsklassen:
Byte2BooleanMaps.UnmodifyableOrderedEntrySet,Byte2ByteMaps.UnmodifyableOrderedEntrySet,Byte2CharMaps.UnmodifyableOrderedEntrySet,Byte2DoubleMaps.UnmodifyableOrderedEntrySet,Byte2FloatMaps.UnmodifyableOrderedEntrySet,Byte2IntMaps.UnmodifyableOrderedEntrySet,Byte2LongMaps.UnmodifyableOrderedEntrySet,Byte2ObjectMaps.UnmodifyableOrderedEntrySet,Byte2ShortMaps.UnmodifyableOrderedEntrySet,Char2BooleanMaps.UnmodifyableOrderedEntrySet,Char2ByteMaps.UnmodifyableOrderedEntrySet,Char2CharMaps.UnmodifyableOrderedEntrySet,Char2DoubleMaps.UnmodifyableOrderedEntrySet,Char2FloatMaps.UnmodifyableOrderedEntrySet,Char2IntMaps.UnmodifyableOrderedEntrySet,Char2LongMaps.UnmodifyableOrderedEntrySet,Char2ObjectMaps.UnmodifyableOrderedEntrySet,Char2ShortMaps.UnmodifyableOrderedEntrySet,Double2BooleanMaps.UnmodifyableOrderedEntrySet,Double2ByteMaps.UnmodifyableOrderedEntrySet,Double2CharMaps.UnmodifyableOrderedEntrySet,Double2DoubleMaps.UnmodifyableOrderedEntrySet,Double2FloatMaps.UnmodifyableOrderedEntrySet,Double2IntMaps.UnmodifyableOrderedEntrySet,Double2LongMaps.UnmodifyableOrderedEntrySet,Double2ObjectMaps.UnmodifyableOrderedEntrySet,Double2ShortMaps.UnmodifyableOrderedEntrySet,Float2BooleanMaps.UnmodifyableOrderedEntrySet,Float2ByteMaps.UnmodifyableOrderedEntrySet,Float2CharMaps.UnmodifyableOrderedEntrySet,Float2DoubleMaps.UnmodifyableOrderedEntrySet,Float2FloatMaps.UnmodifyableOrderedEntrySet,Float2IntMaps.UnmodifyableOrderedEntrySet,Float2LongMaps.UnmodifyableOrderedEntrySet,Float2ObjectMaps.UnmodifyableOrderedEntrySet,Float2ShortMaps.UnmodifyableOrderedEntrySet,ImmutableObjectOpenHashSet,Int2BooleanMaps.UnmodifyableOrderedEntrySet,Int2ByteMaps.UnmodifyableOrderedEntrySet,Int2CharMaps.UnmodifyableOrderedEntrySet,Int2DoubleMaps.UnmodifyableOrderedEntrySet,Int2FloatMaps.UnmodifyableOrderedEntrySet,Int2IntMaps.UnmodifyableOrderedEntrySet,Int2LongMaps.UnmodifyableOrderedEntrySet,Int2ObjectMaps.UnmodifyableOrderedEntrySet,Int2ShortMaps.UnmodifyableOrderedEntrySet,Long2BooleanMaps.UnmodifyableOrderedEntrySet,Long2ByteMaps.UnmodifyableOrderedEntrySet,Long2CharMaps.UnmodifyableOrderedEntrySet,Long2DoubleMaps.UnmodifyableOrderedEntrySet,Long2FloatMaps.UnmodifyableOrderedEntrySet,Long2IntMaps.UnmodifyableOrderedEntrySet,Long2LongMaps.UnmodifyableOrderedEntrySet,Long2ObjectMaps.UnmodifyableOrderedEntrySet,Long2ShortMaps.UnmodifyableOrderedEntrySet,Object2BooleanMaps.UnmodifyableOrderedEntrySet,Object2ByteMaps.UnmodifyableOrderedEntrySet,Object2CharMaps.UnmodifyableOrderedEntrySet,Object2DoubleMaps.UnmodifyableOrderedEntrySet,Object2FloatMaps.UnmodifyableOrderedEntrySet,Object2IntMaps.UnmodifyableOrderedEntrySet,Object2LongMaps.UnmodifyableOrderedEntrySet,Object2ObjectMaps.UnmodifyableOrderedEntrySet,Object2ShortMaps.UnmodifyableOrderedEntrySet,ObjectArraySet,ObjectLinkedOpenCustomHashSet,ObjectLinkedOpenHashSet,Short2BooleanMaps.UnmodifyableOrderedEntrySet,Short2ByteMaps.UnmodifyableOrderedEntrySet,Short2CharMaps.UnmodifyableOrderedEntrySet,Short2DoubleMaps.UnmodifyableOrderedEntrySet,Short2FloatMaps.UnmodifyableOrderedEntrySet,Short2IntMaps.UnmodifyableOrderedEntrySet,Short2LongMaps.UnmodifyableOrderedEntrySet,Short2ObjectMaps.UnmodifyableOrderedEntrySet,Short2ShortMaps.UnmodifyableOrderedEntrySet
A Special Set Interface giving Access to some really usefull functions
The Idea behind this interface is to allow access to functions that give control to the Order of elements.
Since Linked implementations as examples can be reordered outside of the Insertion Order.
This interface provides basic access to such functions while also providing some Sorted/NaivgableSet implementations that still fit into here.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanA customized add method that allows you to insert into the first index.booleanA customized add method that allows you to insert into the last index.copy()A Function that does a shallow clone of the Collection itself.first()A method to get the first element in the setiterator()Returns a Type-Specific Iterator to reduce (un)boxingA type Specific Iterator starting from a given keylast()A method to get the last element in the setbooleanmoveToFirst(T o) A specific move method to move a given key to the first index.booleanmoveToLast(T o) A specific move method to move a given key to the last index.A method to get and remove the first element in the setpollLast()A method to get and remove the last element in the setdefault ObjectSplititerator<T>A Type Specific Type Splititerator to reduce boxing/unboxingdefault ObjectOrderedSet<T>Creates a Wrapped OrderedSet that is Synchronizeddefault ObjectOrderedSet<T>synchronize(Object mutex) Creates a Wrapped OrderedSet that is Synchronizeddefault ObjectOrderedSet<T>Creates a Wrapped OrderedSet that is unmodifiableVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, removeIf, streamVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
sizeVon Schnittstelle geerbte Methoden speiger.src.collections.objects.collections.ObjectCollection
addAll, addAll, addAll, addAll, containsAll, containsAny, containsAny, pour, removeAll, removeAll, retainAll, retainAll, toArrayVon 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
-
Methodendetails
-
addAndMoveToFirst
A customized add method that allows you to insert into the first index.- Parameter:
o- the element that should be inserted- Gibt zurück:
- true if it was added
- Siehe auch:
-
addAndMoveToLast
A customized add method that allows you to insert into the last index.- Parameter:
o- the element that should be inserted- Gibt zurück:
- true if it was added
- Siehe auch:
-
moveToFirst
A specific move method to move a given key to the first index.- Parameter:
o- that should be moved to the first index- Gibt zurück:
- true if the value was moved.
- Note:
- returns false if the value was not present in the first place
-
moveToLast
A specific move method to move a given key to the last index.- Parameter:
o- that should be moved to the first last- Gibt zurück:
- true if the value was moved.
- Note:
- returns false if the value was not present in the first place
-
copy
ObjectOrderedSet<T> 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 -
iterator
ObjectBidirectionalIterator<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 SchnittstelleObjectSet<T>- Angegeben von:
iteratorin SchnittstelleSet<T>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
iterator
A type Specific Iterator starting from a given key- Parameter:
fromElement- the element the iterator should start from- Gibt zurück:
- a iterator starting from the given element
- Löst aus:
NoSuchElementException- if fromElement isn't found
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleCollection<T>- Angegeben von:
spliteratorin SchnittstelleIterable<T>- Angegeben von:
spliteratorin SchnittstelleObjectCollection<T>- Angegeben von:
spliteratorin SchnittstelleObjectIterable<T>- Angegeben von:
spliteratorin SchnittstelleObjectSet<T>- Angegeben von:
spliteratorin SchnittstelleSet<T>- Gibt zurück:
- type specific splititerator
-
first
T first()A method to get the first element in the set- Gibt zurück:
- first element in the set
-
pollFirst
T pollFirst()A method to get and remove the first element in the set- Gibt zurück:
- first element in the set
-
last
T last()A method to get the last element in the set- Gibt zurück:
- last element in the set
-
pollLast
T pollLast()A method to get and remove the last element in the set- Gibt zurück:
- last element in the set
-
synchronize
Creates a Wrapped OrderedSet that is Synchronized- Angegeben von:
synchronizein SchnittstelleObjectCollection<T>- Angegeben von:
synchronizein SchnittstelleObjectSet<T>- Gibt zurück:
- a new OrderedSet that is synchronized
- Siehe auch:
-
synchronize
Creates a Wrapped OrderedSet that is Synchronized- Angegeben von:
synchronizein SchnittstelleObjectCollection<T>- Angegeben von:
synchronizein SchnittstelleObjectSet<T>- Parameter:
mutex- is the controller of the synchronization block- Gibt zurück:
- a new OrderedSet Wrapper that is synchronized
- Siehe auch:
-
unmodifiable
Creates a Wrapped OrderedSet that is unmodifiable- Angegeben von:
unmodifiablein SchnittstelleObjectCollection<T>- Angegeben von:
unmodifiablein SchnittstelleObjectSet<T>- Gibt zurück:
- a new OrderedSet Wrapper that is unmodifiable
- Siehe auch:
-