Modul speiger.src.collections
Schnittstelle ShortSortedSet
- Alle Superschnittstellen:
Collection<Short>,ISizeProvider,Iterable<Short>,Set<Short>,ShortCollection,ShortIterable,ShortSet,SortedSet<Short>
- Alle bekannten Unterschnittstellen:
ShortNavigableSet
- Alle bekannten Implementierungsklassen:
ShortAVLTreeSet,ShortRBTreeSet
A Type Specific SortedSet implementation to reduce boxing/unboxing
with a couple extra methods that allow greater control over sets.
- Note:
- ShortOrderedSet is only extended until 0.6.0 for Compat reasons. The supported classes already implement ShortOrderedSet directly and will remove ShortSortedSet implementations in favor of ShortOrderedSet 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 Shortfirst()Veraltet.shortA method to get the first element in the setheadSet(short toElement) A Type Specific HeadSet method to reduce boxing/unboxingdefault ShortSortedSetVeraltet.iterator()Returns a Type-Specific Iterator to reduce (un)boxingiterator(short fromElement) A type Specific Iterator starting from a given keydefault Shortlast()Veraltet.shortA method to get the last element in the setshortA method to get and remove the first element in the setshortA method to get and remove the last element in the setdefault ShortSplititeratorA Type Specific Type Splititerator to reduce boxing/unboxingsubSet(short fromElement, short toElement) A Type Specific SubSet method to reduce boxing/unboxingdefault ShortSortedSetVeraltet.default ShortSortedSetCreates a Wrapped SortedSet that is Synchronizeddefault ShortSortedSetsynchronize(Object mutex) Creates a Wrapped SortedSet that is SynchronizedtailSet(short fromElement) A Type Specific TailSet method to reduce boxing/unboxingdefault ShortSortedSetVeraltet.default ShortSortedSetCreates 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 java.util.Set
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.shorts.collections.ShortCollection
add, addAll, addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toShortArray, toShortArrayVon Schnittstelle geerbte Methoden speiger.src.collections.shorts.collections.ShortIterable
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
ShortComparator comparator()A Type Specific Comparator method- Angegeben von:
comparatorin SchnittstelleSortedSet<Short>- Gibt zurück:
- the type specific comparator
-
copy
ShortSortedSet copy()Beschreibung aus Schnittstelle kopiert:ShortCollectionA 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 SchnittstelleShortCollection- Angegeben von:
copyin SchnittstelleShortSet- Gibt zurück:
- a Shallow Copy of the collection
-
iterator
ShortBidirectionalIterator iterator()Beschreibung aus Schnittstelle kopiert:ShortCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleCollection<Short>- Angegeben von:
iteratorin SchnittstelleIterable<Short>- Angegeben von:
iteratorin SchnittstelleSet<Short>- Angegeben von:
iteratorin SchnittstelleShortCollection- Angegeben von:
iteratorin SchnittstelleShortIterable- Angegeben von:
iteratorin SchnittstelleShortSet- 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 SchnittstelleShortCollection- Angegeben von:
synchronizein SchnittstelleShortSet- Gibt zurück:
- a new SortedSet that is synchronized
- Siehe auch:
-
synchronize
Creates a Wrapped SortedSet that is Synchronized- Angegeben von:
synchronizein SchnittstelleShortCollection- Angegeben von:
synchronizein SchnittstelleShortSet- 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 SchnittstelleShortCollection- Angegeben von:
unmodifiablein SchnittstelleShortSet- 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<Short>- Angegeben von:
spliteratorin SchnittstelleIterable<Short>- Angegeben von:
spliteratorin SchnittstelleSet<Short>- Angegeben von:
spliteratorin SchnittstelleShortCollection- Angegeben von:
spliteratorin SchnittstelleShortIterable- Angegeben von:
spliteratorin SchnittstelleShortSet- Angegeben von:
spliteratorin SchnittstelleSortedSet<Short>- 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.
-
firstShort
short firstShort()A method to get the first element in the set- Gibt zurück:
- first element in the set
-
pollFirstShort
short pollFirstShort()A method to get and remove the first element in the set- Gibt zurück:
- first element in the set
-
lastShort
short lastShort()A method to get the last element in the set- Gibt zurück:
- last element in the set
-
pollLastShort
short pollLastShort()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.
-