public static class ShortSortedSets.UnmodifiableSortedSet extends ShortSets.UnmodifiableSet implements ShortSortedSet, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.shorts.ShortCollection |
collection |
protected ShortSortedSet |
sortedSet |
| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableSortedSet(ShortSortedSet s) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(short arg0) |
boolean |
add(java.lang.Short arg0)
Deprecated.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Short> arg0) |
boolean |
addAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) |
void |
clear() |
it.unimi.dsi.fastutil.shorts.ShortComparator |
comparator() |
boolean |
contains(java.lang.Object arg0)
Deprecated.
|
boolean |
contains(short arg0) |
boolean |
containsAll(java.util.Collection<?> arg0) |
boolean |
containsAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) |
java.lang.Short |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
short |
firstShort()
Returns the first (lowest) element currently in this set.
|
void |
forEach(it.unimi.dsi.fastutil.shorts.ShortConsumer arg0) |
ShortSortedSet |
headSet(short to)
Returns a view of the portion of this sorted set whose elements are strictly less than
toElement. |
ShortSortedSet |
headSet(java.lang.Short 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.shorts.ShortBidirectionalIterator |
iterator()
Returns a type-specific
BidirectionalIterator on the elements in
this set. |
it.unimi.dsi.fastutil.shorts.ShortBidirectionalIterator |
iterator(short from)
Returns a type-specific
BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation). |
java.lang.Short |
last()
Deprecated.
Please use the corresponding type-specific method instead.
|
short |
lastShort()
Returns the last (highest) element currently in this set.
|
java.util.stream.Stream<java.lang.Short> |
parallelStream()
Deprecated.
|
boolean |
remove(java.lang.Object arg0)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> arg0) |
boolean |
removeAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) |
boolean |
removeIf(it.unimi.dsi.fastutil.shorts.ShortPredicate arg0) |
boolean |
retainAll(java.util.Collection<?> arg0) |
boolean |
retainAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0) |
int |
size() |
it.unimi.dsi.fastutil.shorts.ShortSpliterator |
spliterator() |
java.util.stream.Stream<java.lang.Short> |
stream()
Deprecated.
|
ShortSortedSet |
subSet(short from,
short to)
Returns a view of the portion of this sorted set whose elements range from
fromElement, inclusive, to toElement, exclusive. |
ShortSortedSet |
subSet(java.lang.Short from,
java.lang.Short to)
Deprecated.
Please use the corresponding type-specific method instead.
|
ShortSortedSet |
tailSet(short from)
Returns a view of the portion of this sorted set whose elements are greater than or equal to
fromElement. |
ShortSortedSet |
tailSet(java.lang.Short from)
Deprecated.
Please use the corresponding type-specific method instead.
|
java.lang.Object[] |
toArray() |
short[] |
toArray(short[] arg0) |
<T> T[] |
toArray(T[] arg0) |
short[] |
toShortArray() |
short[] |
toShortArray(short[] arg0)
Deprecated.
|
java.lang.String |
toString() |
equals, hashCode, rem, removeclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratoradd, contains, of, of, of, of, of, rem, remove, removeadd, addAll, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toShortArray, toShortArrayprotected final ShortSortedSet sortedSet
protected final it.unimi.dsi.fastutil.shorts.ShortCollection collection
protected UnmodifiableSortedSet(ShortSortedSet s)
public it.unimi.dsi.fastutil.shorts.ShortComparator comparator()
ShortSortedSetcomparator in interface ShortSortedSetcomparator in interface java.util.SortedSet<java.lang.Short>public ShortSortedSet subSet(short from, short to)
ShortSortedSetfromElement, inclusive, to toElement, exclusive.subSet in interface ShortSortedSetSortedSet.subSet(Object,Object)public ShortSortedSet headSet(short to)
ShortSortedSettoElement.headSet in interface ShortSortedSetSortedSet.headSet(Object)public ShortSortedSet tailSet(short from)
ShortSortedSetfromElement.tailSet in interface ShortSortedSetSortedSet.tailSet(Object)public it.unimi.dsi.fastutil.shorts.ShortBidirectionalIterator iterator()
ShortSortedSetBidirectionalIterator 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.shorts.ShortBidirectionalIterableiterator in interface it.unimi.dsi.fastutil.shorts.ShortCollectioniterator in interface it.unimi.dsi.fastutil.shorts.ShortIterableiterator in interface ShortSetiterator in interface ShortSortedSetiterator in interface java.lang.Iterable<java.lang.Short>iterator in interface java.util.Collection<java.lang.Short>iterator in interface java.util.Set<java.lang.Short>public it.unimi.dsi.fastutil.shorts.ShortBidirectionalIterator iterator(short from)
ShortSortedSetBidirectionalIterator 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 ShortSortedSetfrom - an element to start from.public short firstShort()
ShortSortedSetfirstShort in interface ShortSortedSetSortedSet.first()public short lastShort()
ShortSortedSetlastShort in interface ShortSortedSetSortedSet.last()@Deprecated public java.lang.Short first()
first in interface ShortSortedSetfirst in interface java.util.SortedSet<java.lang.Short>@Deprecated public java.lang.Short last()
last in interface ShortSortedSetlast in interface java.util.SortedSet<java.lang.Short>@Deprecated public ShortSortedSet subSet(java.lang.Short from, java.lang.Short to)
subSet in interface ShortSortedSetsubSet in interface java.util.SortedSet<java.lang.Short>@Deprecated public ShortSortedSet headSet(java.lang.Short to)
headSet in interface ShortSortedSetheadSet in interface java.util.SortedSet<java.lang.Short>@Deprecated public ShortSortedSet tailSet(java.lang.Short from)
tailSet in interface ShortSortedSettailSet in interface java.util.SortedSet<java.lang.Short>public boolean add(short arg0)
add in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic int size()
size in interface java.util.Collection<java.lang.Short>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Short>public boolean contains(short arg0)
contains in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic it.unimi.dsi.fastutil.shorts.ShortSpliterator spliterator()
spliterator in interface it.unimi.dsi.fastutil.shorts.ShortCollectionspliterator in interface it.unimi.dsi.fastutil.shorts.ShortIterablespliterator in interface java.lang.Iterable<java.lang.Short>spliterator in interface java.util.Collection<java.lang.Short>@Deprecated public java.util.stream.Stream<java.lang.Short> stream()
stream in interface it.unimi.dsi.fastutil.shorts.ShortCollectionstream in interface java.util.Collection<java.lang.Short>@Deprecated public java.util.stream.Stream<java.lang.Short> parallelStream()
parallelStream in interface it.unimi.dsi.fastutil.shorts.ShortCollectionparallelStream in interface java.util.Collection<java.lang.Short>public void clear()
clear in interface java.util.Collection<java.lang.Short>public <T> T[] toArray(T[] arg0)
toArray in interface java.util.Collection<java.lang.Short>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Short>public void forEach(it.unimi.dsi.fastutil.shorts.ShortConsumer arg0)
forEach in interface it.unimi.dsi.fastutil.shorts.ShortIterablepublic boolean containsAll(java.util.Collection<?> arg0)
containsAll in interface java.util.Collection<java.lang.Short>public boolean addAll(java.util.Collection<? extends java.lang.Short> arg0)
addAll in interface java.util.Collection<java.lang.Short>public boolean removeAll(java.util.Collection<?> arg0)
removeAll in interface java.util.Collection<java.lang.Short>public boolean retainAll(java.util.Collection<?> arg0)
retainAll in interface java.util.Collection<java.lang.Short>public boolean removeIf(it.unimi.dsi.fastutil.shorts.ShortPredicate arg0)
removeIf in interface it.unimi.dsi.fastutil.shorts.ShortCollection@Deprecated public boolean add(java.lang.Short arg0)
add in interface it.unimi.dsi.fastutil.shorts.ShortCollectionadd in interface java.util.Collection<java.lang.Short>@Deprecated public boolean contains(java.lang.Object arg0)
contains in interface it.unimi.dsi.fastutil.shorts.ShortCollectioncontains in interface java.util.Collection<java.lang.Short>@Deprecated public boolean remove(java.lang.Object arg0)
remove in interface it.unimi.dsi.fastutil.shorts.ShortCollectionremove in interface java.util.Collection<java.lang.Short>public short[] toShortArray()
toShortArray in interface it.unimi.dsi.fastutil.shorts.ShortCollection@Deprecated public short[] toShortArray(short[] arg0)
toShortArray in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic short[] toArray(short[] arg0)
toArray in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic boolean containsAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0)
containsAll in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic boolean addAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0)
addAll in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic boolean removeAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0)
removeAll in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic boolean retainAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0)
retainAll in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic it.unimi.dsi.fastutil.ints.IntIterator intIterator()
intIterator in interface it.unimi.dsi.fastutil.shorts.ShortCollectionintIterator in interface it.unimi.dsi.fastutil.shorts.ShortIterablepublic it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()
intSpliterator in interface it.unimi.dsi.fastutil.shorts.ShortCollectionintSpliterator in interface it.unimi.dsi.fastutil.shorts.ShortIterablepublic java.util.stream.IntStream intStream()
intStream in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic java.util.stream.IntStream intParallelStream()
intParallelStream in interface it.unimi.dsi.fastutil.shorts.ShortCollectionpublic java.lang.String toString()
toString in class java.lang.Object