|
||||||||||
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)
ObjectSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface Set
remove
in class AbstractObjectCollection
public boolean remove(boolean k)
BooleanSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface BooleanSet
Collection.remove(Object)
public boolean remove(byte k)
ByteSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface ByteSet
Collection.remove(Object)
public boolean remove(char k)
CharSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface CharSet
Collection.remove(Object)
public boolean remove(short k)
ShortSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface ShortSet
Collection.remove(Object)
public boolean remove(int k)
IntSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface IntSet
Collection.remove(Object)
public boolean remove(long k)
LongSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface LongSet
Collection.remove(Object)
public boolean remove(float k)
FloatSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface FloatSet
Collection.remove(Object)
public boolean remove(double k)
DoubleSet
rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface DoubleSet
Collection.remove(Object)
public ByteBidirectionalIterator iterator(byte from)
ByteSortedSet
BidirectionalIterator
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 ByteSortedSet
from
- an element to start from.
public CharBidirectionalIterator iterator(char from)
CharSortedSet
BidirectionalIterator
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 CharSortedSet
from
- an element to start from.
public ShortBidirectionalIterator iterator(short from)
ShortSortedSet
BidirectionalIterator
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 ShortSortedSet
from
- an element to start from.
public IntBidirectionalIterator iterator(int from)
IntSortedSet
BidirectionalIterator
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 IntSortedSet
from
- an element to start from.
public LongBidirectionalIterator iterator(long from)
LongSortedSet
BidirectionalIterator
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 LongSortedSet
from
- an element to start from.
public FloatBidirectionalIterator iterator(float from)
FloatSortedSet
BidirectionalIterator
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 FloatSortedSet
from
- an element to start from.
public DoubleBidirectionalIterator iterator(double from)
DoubleSortedSet
BidirectionalIterator
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 DoubleSortedSet
from
- an element to start from.
public ObjectBidirectionalIterator iterator(Object from)
ObjectSortedSet
BidirectionalIterator
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 ObjectSortedSet
from
- an element to start from.
public ByteSortedSet subSet(byte from, byte to)
subSet
in interface ByteSortedSet
SortedSet.subSet(Object,Object)
public CharSortedSet subSet(char from, char to)
subSet
in interface CharSortedSet
SortedSet.subSet(Object,Object)
public ShortSortedSet subSet(short from, short to)
subSet
in interface ShortSortedSet
SortedSet.subSet(Object,Object)
public IntSortedSet subSet(int from, int to)
subSet
in interface IntSortedSet
SortedSet.subSet(Object,Object)
public LongSortedSet subSet(long from, long to)
subSet
in interface LongSortedSet
SortedSet.subSet(Object,Object)
public FloatSortedSet subSet(float from, float to)
subSet
in interface FloatSortedSet
SortedSet.subSet(Object,Object)
public DoubleSortedSet subSet(double from, double to)
subSet
in interface DoubleSortedSet
SortedSet.subSet(Object,Object)
public SortedSet subSet(Object from, Object to)
subSet
in interface SortedSet
public ByteSortedSet headSet(byte from)
headSet
in interface ByteSortedSet
SortedSet.headSet(Object)
public CharSortedSet headSet(char from)
headSet
in interface CharSortedSet
SortedSet.headSet(Object)
public ShortSortedSet headSet(short from)
headSet
in interface ShortSortedSet
SortedSet.headSet(Object)
public IntSortedSet headSet(int from)
headSet
in interface IntSortedSet
SortedSet.headSet(Object)
public LongSortedSet headSet(long from)
headSet
in interface LongSortedSet
SortedSet.headSet(Object)
public FloatSortedSet headSet(float from)
headSet
in interface FloatSortedSet
SortedSet.headSet(Object)
public DoubleSortedSet headSet(double from)
headSet
in interface DoubleSortedSet
SortedSet.headSet(Object)
public SortedSet headSet(Object from)
headSet
in interface SortedSet
public ByteSortedSet tailSet(byte to)
tailSet
in interface ByteSortedSet
SortedSet.tailSet(Object)
public CharSortedSet tailSet(char to)
tailSet
in interface CharSortedSet
SortedSet.tailSet(Object)
public ShortSortedSet tailSet(short to)
tailSet
in interface ShortSortedSet
SortedSet.tailSet(Object)
public IntSortedSet tailSet(int to)
tailSet
in interface IntSortedSet
SortedSet.tailSet(Object)
public LongSortedSet tailSet(long to)
tailSet
in interface LongSortedSet
SortedSet.tailSet(Object)
public FloatSortedSet tailSet(float to)
tailSet
in interface FloatSortedSet
SortedSet.tailSet(Object)
public DoubleSortedSet tailSet(double to)
tailSet
in interface DoubleSortedSet
SortedSet.tailSet(Object)
public SortedSet tailSet(Object to)
tailSet
in interface SortedSet
public Object first()
first
in interface SortedSet
public boolean firstBoolean()
public byte firstByte()
firstByte
in interface ByteSortedSet
SortedSet.first()
public char firstChar()
firstChar
in interface CharSortedSet
SortedSet.first()
public short firstShort()
firstShort
in interface ShortSortedSet
SortedSet.first()
public int firstInt()
firstInt
in interface IntSortedSet
SortedSet.first()
public long firstLong()
firstLong
in interface LongSortedSet
SortedSet.first()
public float firstFloat()
firstFloat
in interface FloatSortedSet
SortedSet.first()
public double firstDouble()
firstDouble
in interface DoubleSortedSet
SortedSet.first()
public Object last()
last
in interface SortedSet
public boolean lastBoolean()
public byte lastByte()
lastByte
in interface ByteSortedSet
SortedSet.last()
public char lastChar()
lastChar
in interface CharSortedSet
SortedSet.last()
public short lastShort()
lastShort
in interface ShortSortedSet
SortedSet.last()
public int lastInt()
lastInt
in interface IntSortedSet
SortedSet.last()
public long lastLong()
lastLong
in interface LongSortedSet
SortedSet.last()
public float lastFloat()
lastFloat
in interface FloatSortedSet
SortedSet.last()
public double lastDouble()
lastDouble
in interface DoubleSortedSet
SortedSet.last()
public Comparator comparator()
comparator
in interface SortedSet
public 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 |