java.lang.Object
speiger.src.collections.longs.utils.LongSets
A Helper class for sets
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classUnmodifyable Set wrapper that helps is used with unmodifyableSet function -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic LongSetempty()EmptySet getterstatic LongSetsingleton(long element) Creates a Singleton set of a given elementstatic LongNavigableSetCreates a Synchronized NavigableSet while preserving the ITrimmable interfacestatic LongNavigableSetsynchronize(LongNavigableSet s, Object mutex) Creates a Synchronized NavigableSet while preserving the ITrimmable interfacestatic LongOrderedSetCreates a Synchronized OrderedSet while preserving the ITrimmable interfacestatic LongOrderedSetsynchronize(LongOrderedSet s, Object mutex) Creates a Synchronized OrderedSet while preserving the ITrimmable interfacestatic LongSetCreates a Synchronized set while preserving the ITrimmable interfacestatic LongSetsynchronize(LongSet s, Object mutex) Creates a Synchronized set while preserving the ITrimmable interfacestatic LongSortedSetCreates a Synchronized SortedSet while preserving the ITrimmable interfacestatic LongSortedSetsynchronize(LongSortedSet s, Object mutex) Creates a Synchronized SortedSet while preserving the ITrimmable interfacestatic LongNavigableSetCreates Unmodifyable NavigableSet wrapperstatic LongOrderedSetCreates Unmodifyable OrderedSet wrapperstatic LongSetCreates Unmodifyable Set wrapperstatic LongSortedSetCreates Unmodifyable SortedSet wrapper
-
Konstruktordetails
-
LongSets
public LongSets()
-
-
Methodendetails
-
empty
EmptySet getter- Gibt zurück:
- a EmptySet
-
synchronize
Creates a Synchronized set while preserving the ITrimmable interface- Parameter:
s- the set that should be synchronized- Gibt zurück:
- a set that is synchronized
- Note:
- if the set is already synchronized then it will just self return it
-
synchronize
Creates a Synchronized set while preserving the ITrimmable interface- Parameter:
s- the set that should be synchronizedmutex- controller for access- Gibt zurück:
- a set that is synchronized
- Note:
- if the set is already synchronized then it will just self return it
-
synchronize
Creates a Synchronized SortedSet while preserving the ITrimmable interface- Parameter:
s- the set that should be synchronized- Gibt zurück:
- a SortedSet that is synchronized
- Note:
- if the set is already synchronized then it will just self return it
-
synchronize
Creates a Synchronized SortedSet while preserving the ITrimmable interface- Parameter:
s- the set that should be synchronizedmutex- controller for access- Gibt zurück:
- a SortedSet that is synchronized
- Note:
- if the set is already synchronized then it will just self return it
-
synchronize
Creates a Synchronized OrderedSet while preserving the ITrimmable interface- Parameter:
s- the set that should be synchronized- Gibt zurück:
- a OrderedSet that is synchronized
- Note:
- if the set is already synchronized then it will just self return it
-
synchronize
Creates a Synchronized OrderedSet while preserving the ITrimmable interface- Parameter:
s- the set that should be synchronizedmutex- controller for access- Gibt zurück:
- a OrderedSet that is synchronized
- Note:
- if the set is already synchronized then it will just self return it
-
unmodifiable
Creates Unmodifyable Set wrapper- Parameter:
s- set that should be made unmodifiable- Gibt zurück:
- a UnmodifyableSet, if the set is already unmodifiable then it returns itself
-
unmodifiable
Creates Unmodifyable SortedSet wrapper- Parameter:
s- sortedSet that should be made unmodifiable- Gibt zurück:
- a UnmodifyableSortedSet, if the set is already unmodifiable then it returns itself
-
unmodifiable
Creates Unmodifyable OrderedSet wrapper- Parameter:
s- OrderedSet that should be made unmodifiable- Gibt zurück:
- a UnmodifyableOrderedSet, if the set is already unmodifiable then it returns itself
-
singleton
Creates a Singleton set of a given element- Parameter:
element- the element that should be converted into a singleton set- Gibt zurück:
- a singletonset of the given element
-