|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectCollection
it.unimi.dsi.fastutil.Collections.EmptyCollection
it.unimi.dsi.fastutil.Sets.EmptySet
An immutable class representing the empty (sorted) set and implementing all type-specific set interfaces.
This class may be useful to implement your own in case you subclass a type-specific set.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
ByteComparator |
byteComparator()
|
CharComparator |
charComparator()
|
Object |
clone()
|
Comparator |
comparator()
|
DoubleComparator |
doubleComparator()
|
Object |
first()
|
boolean |
firstBoolean()
|
byte |
firstByte()
|
char |
firstChar()
|
double |
firstDouble()
|
float |
firstFloat()
|
int |
firstInt()
|
long |
firstLong()
|
short |
firstShort()
|
FloatComparator |
floatComparator()
|
ByteSortedSet |
headSet(byte from)
|
CharSortedSet |
headSet(char from)
|
DoubleSortedSet |
headSet(double from)
|
FloatSortedSet |
headSet(float from)
|
IntSortedSet |
headSet(int from)
|
LongSortedSet |
headSet(long from)
|
SortedSet |
headSet(Object from)
|
ShortSortedSet |
headSet(short from)
|
IntComparator |
intComparator()
|
ByteBidirectionalIterator |
iterator(byte from)
Returns a type-specific BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation).
|
CharBidirectionalIterator |
iterator(char from)
Returns a type-specific BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation).
|
DoubleBidirectionalIterator |
iterator(double from)
Returns a type-specific BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation).
|
FloatBidirectionalIterator |
iterator(float from)
Returns a type-specific BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation).
|
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).
|
LongBidirectionalIterator |
iterator(long from)
Returns a type-specific BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation).
|
ObjectBidirectionalIterator |
iterator(Object from)
Returns a type-specific BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation).
|
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).
|
Object |
last()
|
boolean |
lastBoolean()
|
byte |
lastByte()
|
char |
lastChar()
|
double |
lastDouble()
|
float |
lastFloat()
|
int |
lastInt()
|
long |
lastLong()
|
short |
lastShort()
|
LongComparator |
longComparator()
|
boolean |
remove(boolean k)
Note that the corresponding method of the type-specific collection is rem().
|
boolean |
remove(byte k)
Note that the corresponding method of the type-specific collection is rem().
|
boolean |
remove(char k)
Note that the corresponding method of the type-specific collection is rem().
|
boolean |
remove(double k)
Note that the corresponding method of the type-specific collection is rem().
|
boolean |
remove(float k)
Note that the corresponding method of the type-specific collection is rem().
|
boolean |
remove(int k)
Note that the corresponding method of the type-specific collection is rem().
|
boolean |
remove(long k)
Note that the corresponding method of the type-specific collection is rem().
|
boolean |
remove(Object ok)
Note that the corresponding method of the type-specific collection is rem().
|
boolean |
remove(short k)
Note that the corresponding method of the type-specific collection is rem().
|
ShortComparator |
shortComparator()
|
ByteSortedSet |
subSet(byte from,
byte to)
|
CharSortedSet |
subSet(char from,
char to)
|
DoubleSortedSet |
subSet(double from,
double to)
|
FloatSortedSet |
subSet(float from,
float to)
|
IntSortedSet |
subSet(int from,
int to)
|
LongSortedSet |
subSet(long from,
long to)
|
SortedSet |
subSet(Object from,
Object to)
|
ShortSortedSet |
subSet(short from,
short to)
|
ByteSortedSet |
tailSet(byte to)
|
CharSortedSet |
tailSet(char to)
|
DoubleSortedSet |
tailSet(double to)
|
FloatSortedSet |
tailSet(float to)
|
IntSortedSet |
tailSet(int to)
|
LongSortedSet |
tailSet(long to)
|
SortedSet |
tailSet(Object to)
|
ShortSortedSet |
tailSet(short to)
|
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection |
add, addAll, containsAll, isEmpty, rem, removeAll, retainAll, toArray, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanCollection |
add, addAll, booleanIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toBooleanArray, toBooleanArray |
| Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection |
add, addAll, byteIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toByteArray, toByteArray |
| Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection |
add, addAll, contains, containsAll, rem, removeAll, retainAll, shortIterator, toArray, toShortArray, toShortArray |
| Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection |
add, addAll, contains, containsAll, intIterator, rem, removeAll, retainAll, toArray, toIntArray, toIntArray |
| Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection |
add, addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toLongArray, toLongArray |
| Methods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection |
add, addAll, charIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toCharArray, toCharArray |
| Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
add, addAll, contains, containsAll, floatIterator, rem, removeAll, retainAll, toArray, toFloatArray, toFloatArray |
| Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleCollection |
add, addAll, contains, containsAll, doubleIterator, rem, removeAll, retainAll, toArray, toDoubleArray, toDoubleArray |
| Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectCollection |
objectIterator |
| Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceCollection |
objectIterator |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public boolean remove(Object ok)
ObjectSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface Setremove in class AbstractObjectCollectionpublic boolean remove(boolean k)
BooleanSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface BooleanSetCollection.remove(Object)public boolean remove(byte k)
ByteSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface ByteSetCollection.remove(Object)public boolean remove(char k)
CharSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface CharSetCollection.remove(Object)public boolean remove(short k)
ShortSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface ShortSetCollection.remove(Object)public boolean remove(int k)
IntSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface IntSetCollection.remove(Object)public boolean remove(long k)
LongSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface LongSetCollection.remove(Object)public boolean remove(float k)
FloatSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface FloatSetCollection.remove(Object)public boolean remove(double k)
DoubleSetrem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
remove in interface DoubleSetCollection.remove(Object)public ByteBidirectionalIterator iterator(byte from)
ByteSortedSetBidirectionalIterator 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 ByteSortedSetfrom - an element to start from.
public CharBidirectionalIterator iterator(char from)
CharSortedSetBidirectionalIterator 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 CharSortedSetfrom - an element to start from.
public 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 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 LongBidirectionalIterator iterator(long from)
LongSortedSetBidirectionalIterator 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 LongSortedSetfrom - an element to start from.
public FloatBidirectionalIterator iterator(float from)
FloatSortedSetBidirectionalIterator 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 FloatSortedSetfrom - an element to start from.
public DoubleBidirectionalIterator iterator(double from)
DoubleSortedSetBidirectionalIterator 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 DoubleSortedSetfrom - an element to start from.
public ObjectBidirectionalIterator iterator(Object from)
ObjectSortedSetBidirectionalIterator 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 ObjectSortedSetfrom - an element to start from.
public ByteSortedSet subSet(byte from,
byte to)
subSet in interface ByteSortedSetSortedSet.subSet(Object,Object)
public CharSortedSet subSet(char from,
char to)
subSet in interface CharSortedSetSortedSet.subSet(Object,Object)
public ShortSortedSet subSet(short from,
short to)
subSet in interface ShortSortedSetSortedSet.subSet(Object,Object)
public IntSortedSet subSet(int from,
int to)
subSet in interface IntSortedSetSortedSet.subSet(Object,Object)
public LongSortedSet subSet(long from,
long to)
subSet in interface LongSortedSetSortedSet.subSet(Object,Object)
public FloatSortedSet subSet(float from,
float to)
subSet in interface FloatSortedSetSortedSet.subSet(Object,Object)
public DoubleSortedSet subSet(double from,
double to)
subSet in interface DoubleSortedSetSortedSet.subSet(Object,Object)
public SortedSet subSet(Object from,
Object to)
subSet in interface SortedSetpublic ByteSortedSet headSet(byte from)
headSet in interface ByteSortedSetSortedSet.headSet(Object)public CharSortedSet headSet(char from)
headSet in interface CharSortedSetSortedSet.headSet(Object)public ShortSortedSet headSet(short from)
headSet in interface ShortSortedSetSortedSet.headSet(Object)public IntSortedSet headSet(int from)
headSet in interface IntSortedSetSortedSet.headSet(Object)public LongSortedSet headSet(long from)
headSet in interface LongSortedSetSortedSet.headSet(Object)public FloatSortedSet headSet(float from)
headSet in interface FloatSortedSetSortedSet.headSet(Object)public DoubleSortedSet headSet(double from)
headSet in interface DoubleSortedSetSortedSet.headSet(Object)public SortedSet headSet(Object from)
headSet in interface SortedSetpublic ByteSortedSet tailSet(byte to)
tailSet in interface ByteSortedSetSortedSet.tailSet(Object)public CharSortedSet tailSet(char to)
tailSet in interface CharSortedSetSortedSet.tailSet(Object)public ShortSortedSet tailSet(short to)
tailSet in interface ShortSortedSetSortedSet.tailSet(Object)public IntSortedSet tailSet(int to)
tailSet in interface IntSortedSetSortedSet.tailSet(Object)public LongSortedSet tailSet(long to)
tailSet in interface LongSortedSetSortedSet.tailSet(Object)public FloatSortedSet tailSet(float to)
tailSet in interface FloatSortedSetSortedSet.tailSet(Object)public DoubleSortedSet tailSet(double to)
tailSet in interface DoubleSortedSetSortedSet.tailSet(Object)public SortedSet tailSet(Object to)
tailSet in interface SortedSetpublic Object first()
first in interface SortedSetpublic boolean firstBoolean()
public byte firstByte()
firstByte in interface ByteSortedSetSortedSet.first()public char firstChar()
firstChar in interface CharSortedSetSortedSet.first()public short firstShort()
firstShort in interface ShortSortedSetSortedSet.first()public int firstInt()
firstInt in interface IntSortedSetSortedSet.first()public long firstLong()
firstLong in interface LongSortedSetSortedSet.first()public float firstFloat()
firstFloat in interface FloatSortedSetSortedSet.first()public double firstDouble()
firstDouble in interface DoubleSortedSetSortedSet.first()public Object last()
last in interface SortedSetpublic boolean lastBoolean()
public byte lastByte()
lastByte in interface ByteSortedSetSortedSet.last()public char lastChar()
lastChar in interface CharSortedSetSortedSet.last()public short lastShort()
lastShort in interface ShortSortedSetSortedSet.last()public int lastInt()
lastInt in interface IntSortedSetSortedSet.last()public long lastLong()
lastLong in interface LongSortedSetSortedSet.last()public float lastFloat()
lastFloat in interface FloatSortedSetSortedSet.last()public double lastDouble()
lastDouble in interface DoubleSortedSetSortedSet.last()public Comparator comparator()
comparator in interface SortedSetpublic ByteComparator byteComparator()
public CharComparator charComparator()
public ShortComparator shortComparator()
public IntComparator intComparator()
public LongComparator longComparator()
public FloatComparator floatComparator()
public DoubleComparator doubleComparator()
public Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||