Modul speiger.src.collections
Schnittstelle LongSortedSet
- Alle Superschnittstellen:
Collection<Long>,ISizeProvider,Iterable<Long>,LongCollection,LongIterable,LongSet,Set<Long>,SortedSet<Long>
- Alle bekannten Unterschnittstellen:
LongNavigableSet
- Alle bekannten Implementierungsklassen:
LongAVLTreeSet,LongRBTreeSet
A Type Specific SortedSet implementation to reduce boxing/unboxing
with a couple extra methods that allow greater control over sets.
- Note:
- LongOrderedSet is only extended until 0.6.0 for Compat reasons. The supported classes already implement LongOrderedSet directly and will remove LongSortedSet implementations in favor of LongOrderedSet instead
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungA Type Specific Comparator methodcopy()A Function that does a shallow clone of the Collection itself.default Longfirst()Veraltet.longA method to get the first element in the setheadSet(long toElement) A Type Specific HeadSet method to reduce boxing/unboxingdefault LongSortedSetVeraltet.iterator()Returns a Type-Specific Iterator to reduce (un)boxingiterator(long fromElement) A type Specific Iterator starting from a given keydefault Longlast()Veraltet.longlastLong()A method to get the last element in the setlongA method to get and remove the first element in the setlongA method to get and remove the last element in the setdefault LongSplititeratorA Type Specific Type Splititerator to reduce boxing/unboxingsubSet(long fromElement, long toElement) A Type Specific SubSet method to reduce boxing/unboxingdefault LongSortedSetVeraltet.default LongSortedSetCreates a Wrapped SortedSet that is Synchronizeddefault LongSortedSetsynchronize(Object mutex) Creates a Wrapped SortedSet that is SynchronizedtailSet(long fromElement) A Type Specific TailSet method to reduce boxing/unboxingdefault LongSortedSetVeraltet.default LongSortedSetCreates a Wrapped SortedSet that is unmodifiableVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
sizeVon Schnittstelle geerbte Methoden speiger.src.collections.longs.collections.LongCollection
add, addAll, addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toLongArray, toLongArrayVon Schnittstelle geerbte Methoden speiger.src.collections.longs.collections.LongIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sorted
-
Methodendetails
-
comparator
LongComparator comparator()A Type Specific Comparator method- Angegeben von:
comparatorin SchnittstelleSortedSet<Long>- Gibt zurück:
- the type specific comparator
-
copy
LongSortedSet copy()Beschreibung aus Schnittstelle kopiert:LongCollectionA 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 SchnittstelleLongCollection- Angegeben von:
copyin SchnittstelleLongSet- Gibt zurück:
- a Shallow Copy of the collection
-
iterator
LongBidirectionalIterator iterator()Beschreibung aus Schnittstelle kopiert:LongCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Long>- Angegeben von:
iteratorin SchnittstelleIterable<Long>- Angegeben von:
iteratorin SchnittstelleLongCollection- Angegeben von:
iteratorin SchnittstelleLongIterable- Angegeben von:
iteratorin SchnittstelleLongSet- Angegeben von:
iteratorin SchnittstelleSet<Long>- 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
-
synchronize
Creates a Wrapped SortedSet that is Synchronized- Angegeben von:
synchronizein SchnittstelleLongCollection- Angegeben von:
synchronizein SchnittstelleLongSet- Gibt zurück:
- a new SortedSet that is synchronized
- Siehe auch:
-
synchronize
Creates a Wrapped SortedSet that is Synchronized- Angegeben von:
synchronizein SchnittstelleLongCollection- Angegeben von:
synchronizein SchnittstelleLongSet- Parameter:
mutex- is the controller of the synchronization block- Gibt zurück:
- a new SortedSet Wrapper that is synchronized
- Siehe auch:
-
unmodifiable
Creates a Wrapped SortedSet that is unmodifiable- Angegeben von:
unmodifiablein SchnittstelleLongCollection- Angegeben von:
unmodifiablein SchnittstelleLongSet- Gibt zurück:
- a new SortedSet Wrapper that is unmodifiable
- Siehe auch:
-
spliterator
A Type Specific Type Splititerator to reduce boxing/unboxing- Angegeben von:
spliteratorin SchnittstelleCollection<Long>- Angegeben von:
spliteratorin SchnittstelleIterable<Long>- Angegeben von:
spliteratorin SchnittstelleLongCollection- Angegeben von:
spliteratorin SchnittstelleLongIterable- Angegeben von:
spliteratorin SchnittstelleLongSet- Angegeben von:
spliteratorin SchnittstelleSet<Long>- Angegeben von:
spliteratorin SchnittstelleSortedSet<Long>- Gibt zurück:
- type specific splititerator
-
subSet
A Type Specific SubSet method to reduce boxing/unboxing- Parameter:
fromElement- where the SubSet should starttoElement- where the SubSet should end- Gibt zurück:
- a SubSet that is within the range of the desired range
- Note:
- Some implementations may not support this method., Some implementations may not keep the desired range when the original is changed.
-
headSet
A Type Specific HeadSet method to reduce boxing/unboxing- Parameter:
toElement- where the HeadSet should end- Gibt zurück:
- a HeadSet that is within the range of the desired range
- Note:
- Some implementations may not support this method., Some implementations may not keep the desired range when the original is changed.
-
tailSet
A Type Specific TailSet method to reduce boxing/unboxing- Parameter:
fromElement- where the TailSet should start- Gibt zurück:
- a TailSet that is within the range of the desired range
- Note:
- Some implementations may not support this method., Some implementations may not keep the desired range when the original is changed.
-
firstLong
long firstLong()A method to get the first element in the set- Gibt zurück:
- first element in the set
-
pollFirstLong
long pollFirstLong()A method to get and remove the first element in the set- Gibt zurück:
- first element in the set
-
lastLong
long lastLong()A method to get the last element in the set- Gibt zurück:
- last element in the set
-
pollLastLong
long pollLastLong()A method to get and remove the last element in the set- Gibt zurück:
- last element in the set
-
subSet
Veraltet. -
headSet
Veraltet. -
tailSet
Veraltet. -
first
Veraltet. -
last
Veraltet.
-