|
||||||||||
| 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
An immutable class representing an empty collection and implementing all type-specific collection interfaces.
This class may be useful to implement your own in case you subclass a type-specific collection.
| Method Summary | |
boolean |
add(boolean k)
|
boolean |
add(byte k)
|
boolean |
add(char k)
|
boolean |
add(double k)
|
boolean |
add(float k)
|
boolean |
add(int k)
|
boolean |
add(long k)
|
boolean |
add(short k)
|
boolean |
addAll(BooleanCollection c)
|
boolean |
addAll(BooleanList c)
|
boolean |
addAll(ByteCollection c)
|
boolean |
addAll(ByteList c)
|
boolean |
addAll(CharCollection c)
|
boolean |
addAll(CharList c)
|
boolean |
addAll(DoubleCollection c)
|
boolean |
addAll(DoubleList c)
|
boolean |
addAll(FloatCollection c)
|
boolean |
addAll(FloatList c)
|
boolean |
addAll(IntCollection c)
|
boolean |
addAll(IntList c)
|
boolean |
addAll(LongCollection c)
|
boolean |
addAll(LongList c)
|
boolean |
addAll(ShortCollection c)
|
boolean |
addAll(ShortList c)
|
BooleanIterator |
booleanIterator()
Returns a type-specific iterator on the collection. |
ByteIterator |
byteIterator()
Returns a type-specific iterator on the collection. |
CharIterator |
charIterator()
Returns a type-specific iterator on the collection. |
void |
clear()
|
boolean |
contains(boolean k)
|
boolean |
contains(byte k)
|
boolean |
contains(char k)
|
boolean |
contains(double k)
|
boolean |
contains(float k)
|
boolean |
contains(int k)
|
boolean |
contains(long k)
|
boolean |
contains(Object k)
|
boolean |
contains(short k)
|
boolean |
containsAll(BooleanCollection c)
|
boolean |
containsAll(ByteCollection c)
|
boolean |
containsAll(CharCollection c)
|
boolean |
containsAll(DoubleCollection c)
|
boolean |
containsAll(FloatCollection c)
|
boolean |
containsAll(IntCollection c)
|
boolean |
containsAll(LongCollection c)
|
boolean |
containsAll(ShortCollection c)
|
DoubleIterator |
doubleIterator()
Returns a type-specific iterator on the collection. |
boolean |
equals(Object o)
|
FloatIterator |
floatIterator()
Returns a type-specific iterator on the collection. |
int |
hashCode()
|
IntIterator |
intIterator()
Returns a type-specific iterator on the collection. |
Iterator |
iterator()
Delegates to the corresponding type-specific method. |
LongIterator |
longIterator()
Returns a type-specific iterator on the collection. |
ObjectIterator |
objectIterator()
Returns a type-specific iterator on the collection. |
ObjectIterator |
referenceIterator()
|
boolean |
rem(boolean k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
rem(byte k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
rem(char k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
rem(double k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
rem(float k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
rem(int k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
rem(long k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
rem(short k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
removeAll(BooleanCollection c)
|
boolean |
removeAll(ByteCollection c)
|
boolean |
removeAll(CharCollection c)
|
boolean |
removeAll(DoubleCollection c)
|
boolean |
removeAll(FloatCollection c)
|
boolean |
removeAll(IntCollection c)
|
boolean |
removeAll(LongCollection c)
|
boolean |
removeAll(ShortCollection c)
|
boolean |
retainAll(BooleanCollection c)
|
boolean |
retainAll(ByteCollection c)
|
boolean |
retainAll(CharCollection c)
|
boolean |
retainAll(DoubleCollection c)
|
boolean |
retainAll(FloatCollection c)
|
boolean |
retainAll(IntCollection c)
|
boolean |
retainAll(LongCollection c)
|
boolean |
retainAll(ShortCollection c)
|
ShortIterator |
shortIterator()
Returns a type-specific iterator on the collection. |
int |
size()
|
Object[] |
toArray()
|
boolean[] |
toArray(boolean[] a)
Builds a primitive type array containing the items of this collection. |
byte[] |
toArray(byte[] a)
Builds a primitive type array containing the items of this collection. |
char[] |
toArray(char[] a)
Builds a primitive type array containing the items of this collection. |
double[] |
toArray(double[] a)
Builds a primitive type array containing the items of this collection. |
float[] |
toArray(float[] a)
Builds a primitive type array containing the items of this collection. |
int[] |
toArray(int[] a)
Builds a primitive type array containing the items of this collection. |
long[] |
toArray(long[] a)
Builds a primitive type array containing the items of this collection. |
short[] |
toArray(short[] a)
Builds a primitive type array containing the items of this collection. |
boolean[] |
toBooleanArray()
Returns a primitive type array containing the items of this collection. |
boolean[] |
toBooleanArray(boolean[] a)
Builds a primitive type array containing the items of this collection. |
byte[] |
toByteArray()
Returns a primitive type array containing the items of this collection. |
byte[] |
toByteArray(byte[] a)
Builds a primitive type array containing the items of this collection. |
char[] |
toCharArray()
Returns a primitive type array containing the items of this collection. |
char[] |
toCharArray(char[] a)
Builds a primitive type array containing the items of this collection. |
double[] |
toDoubleArray()
Returns a primitive type array containing the items of this collection. |
double[] |
toDoubleArray(double[] a)
Builds a primitive type array containing the items of this collection. |
float[] |
toFloatArray()
Returns a primitive type array containing the items of this collection. |
float[] |
toFloatArray(float[] a)
Builds a primitive type array containing the items of this collection. |
int[] |
toIntArray()
Returns a primitive type array containing the items of this collection. |
int[] |
toIntArray(int[] a)
Builds a primitive type array containing the items of this collection. |
long[] |
toLongArray()
Returns a primitive type array containing the items of this collection. |
long[] |
toLongArray(long[] a)
Builds a primitive type array containing the items of this collection. |
short[] |
toShortArray()
Returns a primitive type array containing the items of this collection. |
short[] |
toShortArray(short[] a)
Builds a primitive type array containing the items of this collection. |
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection |
add, addAll, containsAll, isEmpty, rem, remove, removeAll, retainAll, toArray, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
add, addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray |
| Method Detail |
public boolean add(boolean k)
add in interface BooleanCollectionCollection.add(Object)public boolean add(byte k)
add in interface ByteCollectionCollection.add(Object)public boolean add(char k)
add in interface CharCollectionCollection.add(Object)public boolean add(short k)
add in interface ShortCollectionCollection.add(Object)public boolean add(int k)
add in interface IntCollectionCollection.add(Object)public boolean add(long k)
add in interface LongCollectionCollection.add(Object)public boolean add(float k)
add in interface FloatCollectionCollection.add(Object)public boolean add(double k)
add in interface DoubleCollectionCollection.add(Object)public boolean addAll(BooleanList c)
public boolean addAll(ByteList c)
public boolean addAll(CharList c)
public boolean addAll(ShortList c)
public boolean addAll(IntList c)
public boolean addAll(LongList c)
public boolean addAll(FloatList c)
public boolean addAll(DoubleList c)
public boolean addAll(BooleanCollection c)
addAll in interface BooleanCollectionCollection.addAll(Collection)public boolean addAll(ByteCollection c)
addAll in interface ByteCollectionCollection.addAll(Collection)public boolean addAll(CharCollection c)
addAll in interface CharCollectionCollection.addAll(Collection)public boolean addAll(ShortCollection c)
addAll in interface ShortCollectionCollection.addAll(Collection)public boolean addAll(IntCollection c)
addAll in interface IntCollectionCollection.addAll(Collection)public boolean addAll(LongCollection c)
addAll in interface LongCollectionCollection.addAll(Collection)public boolean addAll(FloatCollection c)
addAll in interface FloatCollectionCollection.addAll(Collection)public boolean addAll(DoubleCollection c)
addAll in interface DoubleCollectionCollection.addAll(Collection)public boolean removeAll(BooleanCollection c)
removeAll in interface BooleanCollectionCollection.removeAll(Collection)public boolean removeAll(ByteCollection c)
removeAll in interface ByteCollectionCollection.removeAll(Collection)public boolean removeAll(CharCollection c)
removeAll in interface CharCollectionCollection.removeAll(Collection)public boolean removeAll(ShortCollection c)
removeAll in interface ShortCollectionCollection.removeAll(Collection)public boolean removeAll(IntCollection c)
removeAll in interface IntCollectionCollection.removeAll(Collection)public boolean removeAll(LongCollection c)
removeAll in interface LongCollectionCollection.removeAll(Collection)public boolean removeAll(FloatCollection c)
removeAll in interface FloatCollectionCollection.removeAll(Collection)public boolean removeAll(DoubleCollection c)
removeAll in interface DoubleCollectionCollection.removeAll(Collection)public boolean containsAll(BooleanCollection c)
containsAll in interface BooleanCollectionCollection.containsAll(Collection)public boolean containsAll(ByteCollection c)
containsAll in interface ByteCollectionCollection.containsAll(Collection)public boolean containsAll(CharCollection c)
containsAll in interface CharCollectionCollection.containsAll(Collection)public boolean containsAll(ShortCollection c)
containsAll in interface ShortCollectionCollection.containsAll(Collection)public boolean containsAll(IntCollection c)
containsAll in interface IntCollectionCollection.containsAll(Collection)public boolean containsAll(LongCollection c)
containsAll in interface LongCollectionCollection.containsAll(Collection)public boolean containsAll(FloatCollection c)
containsAll in interface FloatCollectionCollection.containsAll(Collection)public boolean containsAll(DoubleCollection c)
containsAll in interface DoubleCollectionCollection.containsAll(Collection)public boolean retainAll(BooleanCollection c)
retainAll in interface BooleanCollectionCollection.retainAll(Collection)public boolean retainAll(ByteCollection c)
retainAll in interface ByteCollectionCollection.retainAll(Collection)public boolean retainAll(CharCollection c)
retainAll in interface CharCollectionCollection.retainAll(Collection)public boolean retainAll(ShortCollection c)
retainAll in interface ShortCollectionCollection.retainAll(Collection)public boolean retainAll(IntCollection c)
retainAll in interface IntCollectionCollection.retainAll(Collection)public boolean retainAll(LongCollection c)
retainAll in interface LongCollectionCollection.retainAll(Collection)public boolean retainAll(FloatCollection c)
retainAll in interface FloatCollectionCollection.retainAll(Collection)public boolean retainAll(DoubleCollection c)
retainAll in interface DoubleCollectionCollection.retainAll(Collection)public boolean rem(boolean k)
BooleanCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface BooleanCollectionCollection.remove(Object)public boolean rem(byte k)
ByteCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface ByteCollectionCollection.remove(Object)public boolean rem(char k)
CharCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface CharCollectionCollection.remove(Object)public boolean rem(short k)
ShortCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface ShortCollectionCollection.remove(Object)public boolean rem(int k)
IntCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface IntCollectionCollection.remove(Object)public boolean rem(long k)
LongCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface LongCollectionCollection.remove(Object)public boolean rem(float k)
FloatCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface FloatCollectionCollection.remove(Object)public boolean rem(double k)
DoubleCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface DoubleCollectionCollection.remove(Object)public boolean contains(Object k)
contains in interface Collectionpublic boolean contains(boolean k)
contains in interface BooleanCollectionCollection.contains(Object)public boolean contains(byte k)
contains in interface ByteCollectionCollection.contains(Object)public boolean contains(char k)
contains in interface CharCollectionCollection.contains(Object)public boolean contains(short k)
contains in interface ShortCollectionCollection.contains(Object)public boolean contains(int k)
contains in interface IntCollectionCollection.contains(Object)public boolean contains(long k)
contains in interface LongCollectionCollection.contains(Object)public boolean contains(float k)
contains in interface FloatCollectionCollection.contains(Object)public boolean contains(double k)
contains in interface DoubleCollectionCollection.contains(Object)public Object[] toArray()
toArray in interface CollectiontoArray in class AbstractObjectCollectionpublic boolean[] toBooleanArray()
BooleanCollection
toBooleanArray in interface BooleanCollectionCollection.toArray()public byte[] toByteArray()
ByteCollection
toByteArray in interface ByteCollectionCollection.toArray()public char[] toCharArray()
CharCollection
toCharArray in interface CharCollectionCollection.toArray()public short[] toShortArray()
ShortCollection
toShortArray in interface ShortCollectionCollection.toArray()public int[] toIntArray()
IntCollection
toIntArray in interface IntCollectionCollection.toArray()public long[] toLongArray()
LongCollection
toLongArray in interface LongCollectionCollection.toArray()public float[] toFloatArray()
FloatCollection
toFloatArray in interface FloatCollectionCollection.toArray()public double[] toDoubleArray()
DoubleCollection
toDoubleArray in interface DoubleCollectionCollection.toArray()public boolean[] toBooleanArray(boolean[] a)
BooleanCollection
toBooleanArray in interface BooleanCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public byte[] toByteArray(byte[] a)
ByteCollection
toByteArray in interface ByteCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public char[] toCharArray(char[] a)
CharCollection
toCharArray in interface CharCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public short[] toShortArray(short[] a)
ShortCollection
toShortArray in interface ShortCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public int[] toIntArray(int[] a)
IntCollection
toIntArray in interface IntCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public long[] toLongArray(long[] a)
LongCollection
toLongArray in interface LongCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public float[] toFloatArray(float[] a)
FloatCollection
toFloatArray in interface FloatCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public double[] toDoubleArray(double[] a)
DoubleCollection
toDoubleArray in interface DoubleCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public boolean[] toArray(boolean[] a)
BooleanCollection
toArray in interface BooleanCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public byte[] toArray(byte[] a)
ByteCollection
toArray in interface ByteCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public char[] toArray(char[] a)
CharCollection
toArray in interface CharCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public short[] toArray(short[] a)
ShortCollection
toArray in interface ShortCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public int[] toArray(int[] a)
IntCollection
toArray in interface IntCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public long[] toArray(long[] a)
LongCollection
toArray in interface LongCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public float[] toArray(float[] a)
FloatCollection
toArray in interface FloatCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public double[] toArray(double[] a)
DoubleCollection
toArray in interface DoubleCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public Iterator iterator()
AbstractObjectCollection
iterator in interface Collectioniterator in class AbstractObjectCollectionpublic BooleanIterator booleanIterator()
BooleanCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
booleanIterator in interface BooleanCollectionCollection.iterator()public ByteIterator byteIterator()
ByteCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
byteIterator in interface ByteCollectionCollection.iterator()public CharIterator charIterator()
CharCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
charIterator in interface CharCollectionCollection.iterator()public ShortIterator shortIterator()
ShortCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
shortIterator in interface ShortCollectionCollection.iterator()public IntIterator intIterator()
IntCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
intIterator in interface IntCollectionCollection.iterator()public LongIterator longIterator()
LongCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
longIterator in interface LongCollectionCollection.iterator()public FloatIterator floatIterator()
FloatCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
floatIterator in interface FloatCollectionCollection.iterator()public DoubleIterator doubleIterator()
DoubleCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
doubleIterator in interface DoubleCollectionCollection.iterator()public ObjectIterator objectIterator()
ObjectCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
objectIterator in interface ObjectCollectionCollection.iterator()public ObjectIterator referenceIterator()
public int size()
size in interface Collectionpublic void clear()
clear in interface Collectionclear in class AbstractObjectCollectionpublic int hashCode()
hashCode in interface Collectionpublic boolean equals(Object o)
equals in interface Collection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||