Class FloatSortedSets.SynchronizedSortedSet
- All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.FloatBidirectionalIterable,it.unimi.dsi.fastutil.floats.FloatCollection,it.unimi.dsi.fastutil.floats.FloatIterable,FloatSet,FloatSortedSet,Serializable,Iterable<Float>,Collection<Float>,SequencedCollection<Float>,SequencedSet<Float>,Set<Float>,SortedSet<Float>
- Enclosing class:
FloatSortedSets
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.floats.FloatCollectionprotected final FloatSortedSetprotected final Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSynchronizedSortedSet(FloatSortedSet s, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(float arg0) booleanDeprecated.booleanaddAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0) booleanaddAll(Collection<? extends Float> arg0) voidclear()it.unimi.dsi.fastutil.floats.FloatComparatorbooleancontains(float arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0) booleancontainsAll(Collection<?> arg0) it.unimi.dsi.fastutil.doubles.DoubleIteratorit.unimi.dsi.fastutil.doubles.DoubleSpliteratorbooleanfirst()Deprecated.Please use the corresponding type-specific method instead.floatReturns the first (lowest) element currently in this set.voidforEach(it.unimi.dsi.fastutil.floats.FloatConsumer arg0) inthashCode()headSet(float to) Returns a view of the portion of this sorted set whose elements are strictly less thantoElement.Deprecated.Please use the corresponding type-specific method instead.booleanisEmpty()it.unimi.dsi.fastutil.floats.FloatBidirectionalIteratoriterator()Returns a type-specificBidirectionalIteratoron the elements in this set.it.unimi.dsi.fastutil.floats.FloatBidirectionalIteratoriterator(float from) Returns a type-specificBidirectionalIteratoron the elements in this set, starting from a given element of the domain (optional operation).last()Deprecated.Please use the corresponding type-specific method instead.floatReturns the last (highest) element currently in this set.Deprecated.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0) booleanremoveAll(Collection<?> arg0) booleanremoveIf(it.unimi.dsi.fastutil.floats.FloatPredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0) booleanretainAll(Collection<?> arg0) intsize()it.unimi.dsi.fastutil.floats.FloatSpliteratorstream()Deprecated.subSet(float from, float to) Returns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.Deprecated.Please use the corresponding type-specific method instead.tailSet(float from) Returns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.Deprecated.Please use the corresponding type-specific method instead.Object[]toArray()float[]toArray(float[] arg0) <T> T[]toArray(T[] arg0) float[]float[]toFloatArray(float[] arg0) Deprecated.toString()Methods inherited from class it.unimi.dsi.fastutil.floats.FloatSets.SynchronizedSet
rem, removeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
toArrayMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection
add, addAll, contains, containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toFloatArray, toFloatArrayMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatIterable
forEach, forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatSet
add, contains, rem, remove, removeMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatSortedSet
spliteratorMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface java.util.SortedSet
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
Field Details
-
sortedSet
-
collection
protected final it.unimi.dsi.fastutil.floats.FloatCollection collection -
sync
-
-
Constructor Details
-
SynchronizedSortedSet
-
SynchronizedSortedSet
-
-
Method Details
-
comparator
public it.unimi.dsi.fastutil.floats.FloatComparator comparator()Description copied from interface:FloatSortedSet- Specified by:
comparatorin interfaceFloatSortedSet- Specified by:
comparatorin interfaceSortedSet<Float>
-
subSet
Description copied from interface:FloatSortedSetReturns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.- Specified by:
subSetin interfaceFloatSortedSet- See Also:
-
headSet
Description copied from interface:FloatSortedSetReturns a view of the portion of this sorted set whose elements are strictly less thantoElement.- Specified by:
headSetin interfaceFloatSortedSet- See Also:
-
tailSet
Description copied from interface:FloatSortedSetReturns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.- Specified by:
tailSetin interfaceFloatSortedSet- See Also:
-
iterator
public it.unimi.dsi.fastutil.floats.FloatBidirectionalIterator iterator()Description copied from interface:FloatSortedSetReturns a type-specificBidirectionalIteratoron the elements in this set.This method returns a parameterised bidirectional iterator. The iterator can be moreover safely cast to a type-specific iterator.
- Specified by:
iteratorin interfaceCollection<Float>- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.floats.FloatBidirectionalIterable- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.floats.FloatIterable- Specified by:
iteratorin interfaceFloatSet- Specified by:
iteratorin interfaceFloatSortedSet- Specified by:
iteratorin interfaceIterable<Float>- Specified by:
iteratorin interfaceSet<Float>- Returns:
- a bidirectional iterator on the element in this set.
-
iterator
public it.unimi.dsi.fastutil.floats.FloatBidirectionalIterator iterator(float from) Description copied from interface:FloatSortedSetReturns a type-specificBidirectionalIteratoron the elements in this set, starting from a given element of the domain (optional operation).This method returns a type-specific bidirectional iterator with given starting point. The starting point is any element comparable to the elements of this set (even if it does not actually belong to the set). The next element of the returned iterator is the least element of the set that is greater than the starting point (if there are no elements greater than the starting point,
hasNext()will returnfalse). The previous element of the returned iterator is the greatest element of the set that is smaller than or equal to the starting point (if there are no elements smaller than or equal to the starting point,hasPrevious()will returnfalse).Note that passing the last element of the set as starting point and calling
previous()you can traverse the entire set in reverse order.- Specified by:
iteratorin interfaceFloatSortedSet- Parameters:
from- an element to start from.- Returns:
- a bidirectional iterator on the element in this set, starting at the given element.
-
firstFloat
public float firstFloat()Description copied from interface:FloatSortedSetReturns the first (lowest) element currently in this set.- Specified by:
firstFloatin interfaceFloatSortedSet- See Also:
-
lastFloat
public float lastFloat()Description copied from interface:FloatSortedSetReturns the last (highest) element currently in this set.- Specified by:
lastFloatin interfaceFloatSortedSet- See Also:
-
first
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstin interfaceFloatSortedSet- Specified by:
firstin interfaceSortedSet<Float>
-
last
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastin interfaceFloatSortedSet- Specified by:
lastin interfaceSortedSet<Float>
-
subSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
subSetin interfaceFloatSortedSet- Specified by:
subSetin interfaceSortedSet<Float>
-
headSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
headSetin interfaceFloatSortedSet- Specified by:
headSetin interfaceSortedSet<Float>
-
tailSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
tailSetin interfaceFloatSortedSet- Specified by:
tailSetin interfaceSortedSet<Float>
-
add
public boolean add(float arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
contains
public boolean contains(float arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Float>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Float>
-
toFloatArray
public float[] toFloatArray()- Specified by:
toFloatArrayin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
toArray
- Specified by:
toArrayin interfaceCollection<Float>
-
toFloatArray
Deprecated.- Specified by:
toFloatArrayin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
toArray
public float[] toArray(float[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
add
Deprecated.- Specified by:
addin interfaceCollection<Float>- Specified by:
addin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
contains
Deprecated.- Specified by:
containsin interfaceCollection<Float>- Specified by:
containsin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
remove
Deprecated.- Specified by:
removein interfaceCollection<Float>- Specified by:
removein interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
doubleIterator
public it.unimi.dsi.fastutil.doubles.DoubleIterator doubleIterator()- Specified by:
doubleIteratorin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Specified by:
doubleIteratorin interfaceit.unimi.dsi.fastutil.floats.FloatIterable
-
doubleSpliterator
public it.unimi.dsi.fastutil.doubles.DoubleSpliterator doubleSpliterator()- Specified by:
doubleSpliteratorin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Specified by:
doubleSpliteratorin interfaceit.unimi.dsi.fastutil.floats.FloatIterable
-
doubleStream
- Specified by:
doubleStreamin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
doubleParallelStream
- Specified by:
doubleParallelStreamin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Float>
-
spliterator
public it.unimi.dsi.fastutil.floats.FloatSpliterator spliterator()- Specified by:
spliteratorin interfaceCollection<Float>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.floats.FloatIterable- Specified by:
spliteratorin interfaceIterable<Float>
-
stream
Deprecated.- Specified by:
streamin interfaceCollection<Float>- Specified by:
streamin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceCollection<Float>- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
forEach
public void forEach(it.unimi.dsi.fastutil.floats.FloatConsumer arg0) - Specified by:
forEachin interfaceit.unimi.dsi.fastutil.floats.FloatIterable
-
addAll
- Specified by:
addAllin interfaceCollection<Float>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Float>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Float>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Float>
-
removeIf
public boolean removeIf(it.unimi.dsi.fastutil.floats.FloatPredicate arg0) - Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.floats.FloatCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Float>
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Float>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<Float>- Overrides:
equalsin classObject
-