Modul speiger.src.collections
Schnittstelle FloatOrderedSet
- Alle Superschnittstellen:
Collection<Float>,FloatCollection,FloatIterable,FloatSet,ISizeProvider,Iterable<Float>,Set<Float>
- Alle bekannten Implementierungsklassen:
FloatArraySet,FloatLinkedOpenCustomHashSet,FloatLinkedOpenHashSet,ImmutableFloatOpenHashSet
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 TypMethodeBeschreibungbooleanaddAndMoveToFirst(float o) A customized add method that allows you to insert into the first index.booleanaddAndMoveToLast(float o) A customized add method that allows you to insert into the last index.copy()A Function that does a shallow clone of the Collection itself.floatA method to get the first element in the setiterator()Returns a Type-Specific Iterator to reduce (un)boxingiterator(float fromElement) A type Specific Iterator starting from a given keyfloatA method to get the last element in the setbooleanmoveToFirst(float o) A specific move method to move a given key to the first index.booleanmoveToLast(float o) A specific move method to move a given key to the last index.floatA method to get and remove the first element in the setfloatA method to get and remove the last element in the setdefault FloatSplititeratorA Type Specific Type Splititerator to reduce boxing/unboxingdefault FloatOrderedSetCreates a Wrapped OrderedSet that is Synchronizeddefault FloatOrderedSetsynchronize(Object mutex) Creates a Wrapped OrderedSet that is Synchronizeddefault FloatOrderedSetCreates a Wrapped OrderedSet that is unmodifiableVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.floats.collections.FloatCollection
add, addAll, addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toFloatArray, toFloatArrayVon Schnittstelle geerbte Methoden speiger.src.collections.floats.collections.FloatIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedVon Schnittstelle geerbte Methoden speiger.src.collections.floats.sets.FloatSet
add, contains, remFloat, remove, removeVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
size
-
Methodendetails
-
addAndMoveToFirst
boolean addAndMoveToFirst(float o) 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
boolean addAndMoveToLast(float o) 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
boolean moveToFirst(float o) 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
boolean moveToLast(float o) 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
FloatOrderedSet copy()Beschreibung aus Schnittstelle kopiert:FloatCollectionA 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 SchnittstelleFloatCollection- Angegeben von:
copyin SchnittstelleFloatSet- Gibt zurück:
- a Shallow Copy of the collection
-
iterator
FloatBidirectionalIterator iterator()Beschreibung aus Schnittstelle kopiert:FloatCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Float>- Angegeben von:
iteratorin SchnittstelleFloatCollection- Angegeben von:
iteratorin SchnittstelleFloatIterable- Angegeben von:
iteratorin SchnittstelleFloatSet- Angegeben von:
iteratorin SchnittstelleIterable<Float>- Angegeben von:
iteratorin SchnittstelleSet<Float>- 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<Float>- Angegeben von:
spliteratorin SchnittstelleFloatCollection- Angegeben von:
spliteratorin SchnittstelleFloatIterable- Angegeben von:
spliteratorin SchnittstelleFloatSet- Angegeben von:
spliteratorin SchnittstelleIterable<Float>- Angegeben von:
spliteratorin SchnittstelleSet<Float>- Gibt zurück:
- type specific splititerator
-
firstFloat
float firstFloat()A method to get the first element in the set- Gibt zurück:
- first element in the set
-
pollFirstFloat
float pollFirstFloat()A method to get and remove the first element in the set- Gibt zurück:
- first element in the set
-
lastFloat
float lastFloat()A method to get the last element in the set- Gibt zurück:
- last element in the set
-
pollLastFloat
float pollLastFloat()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 SchnittstelleFloatCollection- Angegeben von:
synchronizein SchnittstelleFloatSet- Gibt zurück:
- a new OrderedSet that is synchronized
- Siehe auch:
-
synchronize
Creates a Wrapped OrderedSet that is Synchronized- Angegeben von:
synchronizein SchnittstelleFloatCollection- Angegeben von:
synchronizein SchnittstelleFloatSet- 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 SchnittstelleFloatCollection- Angegeben von:
unmodifiablein SchnittstelleFloatSet- Gibt zurück:
- a new OrderedSet Wrapper that is unmodifiable
- Siehe auch:
-