Class DoubleSortedSets.SynchronizedSortedSet
- All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.DoubleBidirectionalIterable,it.unimi.dsi.fastutil.doubles.DoubleCollection,it.unimi.dsi.fastutil.doubles.DoubleIterable,DoubleSet,DoubleSortedSet,Serializable,Iterable<Double>,Collection<Double>,SequencedCollection<Double>,SequencedSet<Double>,Set<Double>,SortedSet<Double>
- Enclosing class:
DoubleSortedSets
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.doubles.DoubleCollectionprotected final DoubleSortedSetprotected final Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSynchronizedSortedSet(DoubleSortedSet s, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(double arg0) booleanDeprecated.booleanaddAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) booleanaddAll(Collection<? extends Double> arg0) voidclear()it.unimi.dsi.fastutil.doubles.DoubleComparatorbooleancontains(double arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) booleancontainsAll(Collection<?> arg0) it.unimi.dsi.fastutil.doubles.DoubleIteratorit.unimi.dsi.fastutil.doubles.DoubleSpliteratorbooleanfirst()Deprecated.Please use the corresponding type-specific method instead.doubleReturns the first (lowest) element currently in this set.voidforEach(DoubleConsumer arg0) inthashCode()headSet(double 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.doubles.DoubleBidirectionalIteratoriterator()Returns a type-specificBidirectionalIteratoron the elements in this set.it.unimi.dsi.fastutil.doubles.DoubleBidirectionalIteratoriterator(double 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.doubleReturns the last (highest) element currently in this set.Deprecated.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) booleanremoveAll(Collection<?> arg0) booleanremoveIf(DoublePredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) booleanretainAll(Collection<?> arg0) intsize()it.unimi.dsi.fastutil.doubles.DoubleSpliteratorstream()Deprecated.subSet(double from, double 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(double 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()double[]toArray(double[] arg0) <T> T[]toArray(T[] arg0) double[]double[]toDoubleArray(double[] arg0) Deprecated.toString()Methods inherited from class it.unimi.dsi.fastutil.doubles.DoubleSets.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.doubles.DoubleCollection
add, addAll, contains, containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toDoubleArray, toDoubleArrayMethods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleIterable
forEach, forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleSet
add, contains, rem, remove, removeMethods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleSortedSet
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.doubles.DoubleCollection collection -
sync
-
-
Constructor Details
-
SynchronizedSortedSet
-
SynchronizedSortedSet
-
-
Method Details
-
comparator
public it.unimi.dsi.fastutil.doubles.DoubleComparator comparator()Description copied from interface:DoubleSortedSet- Specified by:
comparatorin interfaceDoubleSortedSet- Specified by:
comparatorin interfaceSortedSet<Double>
-
subSet
Description copied from interface:DoubleSortedSetReturns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.- Specified by:
subSetin interfaceDoubleSortedSet- See Also:
-
headSet
Description copied from interface:DoubleSortedSetReturns a view of the portion of this sorted set whose elements are strictly less thantoElement.- Specified by:
headSetin interfaceDoubleSortedSet- See Also:
-
tailSet
Description copied from interface:DoubleSortedSetReturns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.- Specified by:
tailSetin interfaceDoubleSortedSet- See Also:
-
iterator
public it.unimi.dsi.fastutil.doubles.DoubleBidirectionalIterator iterator()Description copied from interface:DoubleSortedSetReturns 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<Double>- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleBidirectionalIterable- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable- Specified by:
iteratorin interfaceDoubleSet- Specified by:
iteratorin interfaceDoubleSortedSet- Specified by:
iteratorin interfaceIterable<Double>- Specified by:
iteratorin interfaceSet<Double>- Returns:
- a bidirectional iterator on the element in this set.
-
iterator
public it.unimi.dsi.fastutil.doubles.DoubleBidirectionalIterator iterator(double from) Description copied from interface:DoubleSortedSetReturns 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 interfaceDoubleSortedSet- Parameters:
from- an element to start from.- Returns:
- a bidirectional iterator on the element in this set, starting at the given element.
-
firstDouble
public double firstDouble()Description copied from interface:DoubleSortedSetReturns the first (lowest) element currently in this set.- Specified by:
firstDoublein interfaceDoubleSortedSet- See Also:
-
lastDouble
public double lastDouble()Description copied from interface:DoubleSortedSetReturns the last (highest) element currently in this set.- Specified by:
lastDoublein interfaceDoubleSortedSet- See Also:
-
first
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstin interfaceDoubleSortedSet- Specified by:
firstin interfaceSortedSet<Double>
-
last
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastin interfaceDoubleSortedSet- Specified by:
lastin interfaceSortedSet<Double>
-
subSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
subSetin interfaceDoubleSortedSet- Specified by:
subSetin interfaceSortedSet<Double>
-
headSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
headSetin interfaceDoubleSortedSet- Specified by:
headSetin interfaceSortedSet<Double>
-
tailSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
tailSetin interfaceDoubleSortedSet- Specified by:
tailSetin interfaceSortedSet<Double>
-
add
public boolean add(double arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
contains
public boolean contains(double arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Double>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Double>
-
toDoubleArray
public double[] toDoubleArray()- Specified by:
toDoubleArrayin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
toArray
- Specified by:
toArrayin interfaceCollection<Double>
-
toDoubleArray
Deprecated.- Specified by:
toDoubleArrayin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
toArray
public double[] toArray(double[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
add
Deprecated.- Specified by:
addin interfaceCollection<Double>- Specified by:
addin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
contains
Deprecated.- Specified by:
containsin interfaceCollection<Double>- Specified by:
containsin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
remove
Deprecated.- Specified by:
removein interfaceCollection<Double>- Specified by:
removein interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
doubleIterator
public it.unimi.dsi.fastutil.doubles.DoubleIterator doubleIterator()- Specified by:
doubleIteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection- Specified by:
doubleIteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable
-
doubleSpliterator
public it.unimi.dsi.fastutil.doubles.DoubleSpliterator doubleSpliterator()- Specified by:
doubleSpliteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection- Specified by:
doubleSpliteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable
-
doubleStream
- Specified by:
doubleStreamin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
doubleParallelStream
- Specified by:
doubleParallelStreamin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Double>
-
spliterator
public it.unimi.dsi.fastutil.doubles.DoubleSpliterator spliterator()- Specified by:
spliteratorin interfaceCollection<Double>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable- Specified by:
spliteratorin interfaceIterable<Double>
-
stream
Deprecated.- Specified by:
streamin interfaceCollection<Double>- Specified by:
streamin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceCollection<Double>- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
forEach
- Specified by:
forEachin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable
-
addAll
- Specified by:
addAllin interfaceCollection<Double>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Double>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Double>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Double>
-
removeIf
- Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Double>
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Double>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<Double>- Overrides:
equalsin classObject
-