public static class IntSortedSets.SynchronizedSortedSet extends IntSets.SynchronizedSet implements IntSortedSet, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.ints.IntCollection |
collection |
protected IntSortedSet |
sortedSet |
protected java.lang.Object |
sync |
| Modifier | Constructor and Description |
|---|---|
protected |
SynchronizedSortedSet(IntSortedSet s) |
protected |
SynchronizedSortedSet(IntSortedSet s,
java.lang.Object sync) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int arg0) |
boolean |
add(java.lang.Integer arg0)
Deprecated.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Integer> arg0) |
boolean |
addAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) |
void |
clear() |
it.unimi.dsi.fastutil.ints.IntComparator |
comparator() |
boolean |
contains(int arg0) |
boolean |
contains(java.lang.Object arg0)
Deprecated.
|
boolean |
containsAll(java.util.Collection<?> arg0) |
boolean |
containsAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) |
boolean |
equals(java.lang.Object arg0) |
java.lang.Integer |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
firstInt()
Returns the first (lowest) element currently in this set.
|
void |
forEach(java.util.function.IntConsumer arg0) |
int |
hashCode() |
IntSortedSet |
headSet(int to)
Returns a view of the portion of this sorted set whose elements are strictly less than
toElement. |
IntSortedSet |
headSet(java.lang.Integer to)
Deprecated.
Please use the corresponding type-specific method instead.
|
it.unimi.dsi.fastutil.ints.IntIterator |
intIterator() |
java.util.stream.IntStream |
intParallelStream() |
it.unimi.dsi.fastutil.ints.IntSpliterator |
intSpliterator() |
java.util.stream.IntStream |
intStream() |
boolean |
isEmpty() |
it.unimi.dsi.fastutil.ints.IntBidirectionalIterator |
iterator()
Returns a type-specific
BidirectionalIterator on the elements in
this set. |
it.unimi.dsi.fastutil.ints.IntBidirectionalIterator |
iterator(int from)
Returns a type-specific
BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation). |
java.lang.Integer |
last()
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
lastInt()
Returns the last (highest) element currently in this set.
|
java.util.stream.Stream<java.lang.Integer> |
parallelStream()
Deprecated.
|
boolean |
remove(java.lang.Object arg0)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> arg0) |
boolean |
removeAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) |
boolean |
removeIf(java.util.function.IntPredicate arg0) |
boolean |
retainAll(java.util.Collection<?> arg0) |
boolean |
retainAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) |
int |
size() |
it.unimi.dsi.fastutil.ints.IntSpliterator |
spliterator() |
java.util.stream.Stream<java.lang.Integer> |
stream()
Deprecated.
|
IntSortedSet |
subSet(java.lang.Integer from,
java.lang.Integer to)
Deprecated.
Please use the corresponding type-specific method instead.
|
IntSortedSet |
subSet(int from,
int to)
Returns a view of the portion of this sorted set whose elements range from
fromElement, inclusive, to toElement, exclusive. |
IntSortedSet |
tailSet(int from)
Returns a view of the portion of this sorted set whose elements are greater than or equal to
fromElement. |
IntSortedSet |
tailSet(java.lang.Integer from)
Deprecated.
Please use the corresponding type-specific method instead.
|
java.lang.Object[] |
toArray() |
int[] |
toArray(int[] arg0) |
<T> T[] |
toArray(T[] arg0) |
int[] |
toIntArray() |
int[] |
toIntArray(int[] arg0)
Deprecated.
|
java.lang.String |
toString() |
rem, removeclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratoradd, contains, of, of, of, of, of, rem, remove, removeprotected final IntSortedSet sortedSet
protected final it.unimi.dsi.fastutil.ints.IntCollection collection
protected final java.lang.Object sync
protected SynchronizedSortedSet(IntSortedSet s, java.lang.Object sync)
protected SynchronizedSortedSet(IntSortedSet s)
public it.unimi.dsi.fastutil.ints.IntComparator comparator()
IntSortedSetcomparator in interface IntSortedSetcomparator in interface java.util.SortedSet<java.lang.Integer>public IntSortedSet subSet(int from, int to)
IntSortedSetfromElement, inclusive, to toElement, exclusive.subSet in interface IntSortedSetSortedSet.subSet(Object,Object)public IntSortedSet headSet(int to)
IntSortedSettoElement.headSet in interface IntSortedSetSortedSet.headSet(Object)public IntSortedSet tailSet(int from)
IntSortedSetfromElement.tailSet in interface IntSortedSetSortedSet.tailSet(Object)public it.unimi.dsi.fastutil.ints.IntBidirectionalIterator iterator()
IntSortedSetBidirectionalIterator on the elements in
this set.
This method returns a parameterised bidirectional iterator. The iterator can be moreover safely cast to a type-specific iterator.
iterator in interface it.unimi.dsi.fastutil.ints.IntBidirectionalIterableiterator in interface it.unimi.dsi.fastutil.ints.IntCollectioniterator in interface it.unimi.dsi.fastutil.ints.IntIterableiterator in interface IntSetiterator in interface IntSortedSetiterator in interface java.lang.Iterable<java.lang.Integer>iterator in interface java.util.Collection<java.lang.Integer>iterator in interface java.util.Set<java.lang.Integer>public it.unimi.dsi.fastutil.ints.IntBidirectionalIterator iterator(int from)
IntSortedSetBidirectionalIterator on 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 return
false). 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 return false).
Note that passing the last element of the set as starting point and
calling previous() you can traverse the
entire set in reverse order.
iterator in interface IntSortedSetfrom - an element to start from.public int firstInt()
IntSortedSetfirstInt in interface IntSortedSetSortedSet.first()public int lastInt()
IntSortedSetlastInt in interface IntSortedSetSortedSet.last()@Deprecated public java.lang.Integer first()
first in interface IntSortedSetfirst in interface java.util.SortedSet<java.lang.Integer>@Deprecated public java.lang.Integer last()
last in interface IntSortedSetlast in interface java.util.SortedSet<java.lang.Integer>@Deprecated public IntSortedSet subSet(java.lang.Integer from, java.lang.Integer to)
subSet in interface IntSortedSetsubSet in interface java.util.SortedSet<java.lang.Integer>@Deprecated public IntSortedSet headSet(java.lang.Integer to)
headSet in interface IntSortedSetheadSet in interface java.util.SortedSet<java.lang.Integer>@Deprecated public IntSortedSet tailSet(java.lang.Integer from)
tailSet in interface IntSortedSettailSet in interface java.util.SortedSet<java.lang.Integer>public boolean add(int arg0)
add in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic boolean contains(int arg0)
contains in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic int size()
size in interface java.util.Collection<java.lang.Integer>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Integer>public int[] toIntArray()
toIntArray in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Integer>@Deprecated public int[] toIntArray(int[] arg0)
toIntArray in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic int[] toArray(int[] arg0)
toArray in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic boolean addAll(it.unimi.dsi.fastutil.ints.IntCollection arg0)
addAll in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic boolean containsAll(it.unimi.dsi.fastutil.ints.IntCollection arg0)
containsAll in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic boolean removeAll(it.unimi.dsi.fastutil.ints.IntCollection arg0)
removeAll in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic boolean retainAll(it.unimi.dsi.fastutil.ints.IntCollection arg0)
retainAll in interface it.unimi.dsi.fastutil.ints.IntCollection@Deprecated public boolean add(java.lang.Integer arg0)
add in interface it.unimi.dsi.fastutil.ints.IntCollectionadd in interface java.util.Collection<java.lang.Integer>@Deprecated public boolean contains(java.lang.Object arg0)
contains in interface it.unimi.dsi.fastutil.ints.IntCollectioncontains in interface java.util.Collection<java.lang.Integer>@Deprecated public boolean remove(java.lang.Object arg0)
remove in interface it.unimi.dsi.fastutil.ints.IntCollectionremove in interface java.util.Collection<java.lang.Integer>public it.unimi.dsi.fastutil.ints.IntIterator intIterator()
intIterator in interface it.unimi.dsi.fastutil.ints.IntCollectionintIterator in interface it.unimi.dsi.fastutil.ints.IntIterablepublic it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()
intSpliterator in interface it.unimi.dsi.fastutil.ints.IntCollectionintSpliterator in interface it.unimi.dsi.fastutil.ints.IntIterablepublic java.util.stream.IntStream intStream()
intStream in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic java.util.stream.IntStream intParallelStream()
intParallelStream in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic <T> T[] toArray(T[] arg0)
toArray in interface java.util.Collection<java.lang.Integer>public it.unimi.dsi.fastutil.ints.IntSpliterator spliterator()
spliterator in interface it.unimi.dsi.fastutil.ints.IntCollectionspliterator in interface it.unimi.dsi.fastutil.ints.IntIterablespliterator in interface java.lang.Iterable<java.lang.Integer>spliterator in interface java.util.Collection<java.lang.Integer>@Deprecated public java.util.stream.Stream<java.lang.Integer> stream()
stream in interface it.unimi.dsi.fastutil.ints.IntCollectionstream in interface java.util.Collection<java.lang.Integer>@Deprecated public java.util.stream.Stream<java.lang.Integer> parallelStream()
parallelStream in interface it.unimi.dsi.fastutil.ints.IntCollectionparallelStream in interface java.util.Collection<java.lang.Integer>public void forEach(java.util.function.IntConsumer arg0)
forEach in interface it.unimi.dsi.fastutil.ints.IntIterablepublic boolean addAll(java.util.Collection<? extends java.lang.Integer> arg0)
addAll in interface java.util.Collection<java.lang.Integer>public boolean containsAll(java.util.Collection<?> arg0)
containsAll in interface java.util.Collection<java.lang.Integer>public boolean removeAll(java.util.Collection<?> arg0)
removeAll in interface java.util.Collection<java.lang.Integer>public boolean retainAll(java.util.Collection<?> arg0)
retainAll in interface java.util.Collection<java.lang.Integer>public boolean removeIf(java.util.function.IntPredicate arg0)
removeIf in interface it.unimi.dsi.fastutil.ints.IntCollectionpublic void clear()
clear in interface java.util.Collection<java.lang.Integer>public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Integer>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object arg0)
equals in interface java.util.Collection<java.lang.Integer>equals in class java.lang.Object