|
||||||||||
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 BooleanCollection
Collection.add(Object)
public boolean add(byte k)
add
in interface ByteCollection
Collection.add(Object)
public boolean add(char k)
add
in interface CharCollection
Collection.add(Object)
public boolean add(short k)
add
in interface ShortCollection
Collection.add(Object)
public boolean add(int k)
add
in interface IntCollection
Collection.add(Object)
public boolean add(long k)
add
in interface LongCollection
Collection.add(Object)
public boolean add(float k)
add
in interface FloatCollection
Collection.add(Object)
public boolean add(double k)
add
in interface DoubleCollection
Collection.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 BooleanCollection
Collection.addAll(Collection)
public boolean addAll(ByteCollection c)
addAll
in interface ByteCollection
Collection.addAll(Collection)
public boolean addAll(CharCollection c)
addAll
in interface CharCollection
Collection.addAll(Collection)
public boolean addAll(ShortCollection c)
addAll
in interface ShortCollection
Collection.addAll(Collection)
public boolean addAll(IntCollection c)
addAll
in interface IntCollection
Collection.addAll(Collection)
public boolean addAll(LongCollection c)
addAll
in interface LongCollection
Collection.addAll(Collection)
public boolean addAll(FloatCollection c)
addAll
in interface FloatCollection
Collection.addAll(Collection)
public boolean addAll(DoubleCollection c)
addAll
in interface DoubleCollection
Collection.addAll(Collection)
public boolean removeAll(BooleanCollection c)
removeAll
in interface BooleanCollection
Collection.removeAll(Collection)
public boolean removeAll(ByteCollection c)
removeAll
in interface ByteCollection
Collection.removeAll(Collection)
public boolean removeAll(CharCollection c)
removeAll
in interface CharCollection
Collection.removeAll(Collection)
public boolean removeAll(ShortCollection c)
removeAll
in interface ShortCollection
Collection.removeAll(Collection)
public boolean removeAll(IntCollection c)
removeAll
in interface IntCollection
Collection.removeAll(Collection)
public boolean removeAll(LongCollection c)
removeAll
in interface LongCollection
Collection.removeAll(Collection)
public boolean removeAll(FloatCollection c)
removeAll
in interface FloatCollection
Collection.removeAll(Collection)
public boolean removeAll(DoubleCollection c)
removeAll
in interface DoubleCollection
Collection.removeAll(Collection)
public boolean containsAll(BooleanCollection c)
containsAll
in interface BooleanCollection
Collection.containsAll(Collection)
public boolean containsAll(ByteCollection c)
containsAll
in interface ByteCollection
Collection.containsAll(Collection)
public boolean containsAll(CharCollection c)
containsAll
in interface CharCollection
Collection.containsAll(Collection)
public boolean containsAll(ShortCollection c)
containsAll
in interface ShortCollection
Collection.containsAll(Collection)
public boolean containsAll(IntCollection c)
containsAll
in interface IntCollection
Collection.containsAll(Collection)
public boolean containsAll(LongCollection c)
containsAll
in interface LongCollection
Collection.containsAll(Collection)
public boolean containsAll(FloatCollection c)
containsAll
in interface FloatCollection
Collection.containsAll(Collection)
public boolean containsAll(DoubleCollection c)
containsAll
in interface DoubleCollection
Collection.containsAll(Collection)
public boolean retainAll(BooleanCollection c)
retainAll
in interface BooleanCollection
Collection.retainAll(Collection)
public boolean retainAll(ByteCollection c)
retainAll
in interface ByteCollection
Collection.retainAll(Collection)
public boolean retainAll(CharCollection c)
retainAll
in interface CharCollection
Collection.retainAll(Collection)
public boolean retainAll(ShortCollection c)
retainAll
in interface ShortCollection
Collection.retainAll(Collection)
public boolean retainAll(IntCollection c)
retainAll
in interface IntCollection
Collection.retainAll(Collection)
public boolean retainAll(LongCollection c)
retainAll
in interface LongCollection
Collection.retainAll(Collection)
public boolean retainAll(FloatCollection c)
retainAll
in interface FloatCollection
Collection.retainAll(Collection)
public boolean retainAll(DoubleCollection c)
retainAll
in interface DoubleCollection
Collection.retainAll(Collection)
public boolean rem(boolean k)
BooleanCollection
remove()
, 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 BooleanCollection
Collection.remove(Object)
public boolean rem(byte k)
ByteCollection
remove()
, 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 ByteCollection
Collection.remove(Object)
public boolean rem(char k)
CharCollection
remove()
, 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 CharCollection
Collection.remove(Object)
public boolean rem(short k)
ShortCollection
remove()
, 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 ShortCollection
Collection.remove(Object)
public boolean rem(int k)
IntCollection
remove()
, 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 IntCollection
Collection.remove(Object)
public boolean rem(long k)
LongCollection
remove()
, 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 LongCollection
Collection.remove(Object)
public boolean rem(float k)
FloatCollection
remove()
, 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 FloatCollection
Collection.remove(Object)
public boolean rem(double k)
DoubleCollection
remove()
, 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 DoubleCollection
Collection.remove(Object)
public boolean contains(Object k)
contains
in interface Collection
public boolean contains(boolean k)
contains
in interface BooleanCollection
Collection.contains(Object)
public boolean contains(byte k)
contains
in interface ByteCollection
Collection.contains(Object)
public boolean contains(char k)
contains
in interface CharCollection
Collection.contains(Object)
public boolean contains(short k)
contains
in interface ShortCollection
Collection.contains(Object)
public boolean contains(int k)
contains
in interface IntCollection
Collection.contains(Object)
public boolean contains(long k)
contains
in interface LongCollection
Collection.contains(Object)
public boolean contains(float k)
contains
in interface FloatCollection
Collection.contains(Object)
public boolean contains(double k)
contains
in interface DoubleCollection
Collection.contains(Object)
public Object[] toArray()
toArray
in interface Collection
toArray
in class AbstractObjectCollection
public boolean[] toBooleanArray()
BooleanCollection
toBooleanArray
in interface BooleanCollection
Collection.toArray()
public byte[] toByteArray()
ByteCollection
toByteArray
in interface ByteCollection
Collection.toArray()
public char[] toCharArray()
CharCollection
toCharArray
in interface CharCollection
Collection.toArray()
public short[] toShortArray()
ShortCollection
toShortArray
in interface ShortCollection
Collection.toArray()
public int[] toIntArray()
IntCollection
toIntArray
in interface IntCollection
Collection.toArray()
public long[] toLongArray()
LongCollection
toLongArray
in interface LongCollection
Collection.toArray()
public float[] toFloatArray()
FloatCollection
toFloatArray
in interface FloatCollection
Collection.toArray()
public double[] toDoubleArray()
DoubleCollection
toDoubleArray
in interface DoubleCollection
Collection.toArray()
public boolean[] toBooleanArray(boolean[] a)
BooleanCollection
toBooleanArray
in interface BooleanCollection
a
- 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 ByteCollection
a
- 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 CharCollection
a
- 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 ShortCollection
a
- 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 IntCollection
a
- 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 LongCollection
a
- 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 FloatCollection
a
- 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 DoubleCollection
a
- 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 BooleanCollection
a
- 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 ByteCollection
a
- 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 CharCollection
a
- 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 ShortCollection
a
- 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 IntCollection
a
- 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 LongCollection
a
- 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 FloatCollection
a
- 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 DoubleCollection
a
- if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])
public Iterator iterator()
AbstractObjectCollection
iterator
in interface Collection
iterator
in class AbstractObjectCollection
public BooleanIterator booleanIterator()
BooleanCollection
The 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 BooleanCollection
Collection.iterator()
public ByteIterator byteIterator()
ByteCollection
The 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 ByteCollection
Collection.iterator()
public CharIterator charIterator()
CharCollection
The 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 CharCollection
Collection.iterator()
public ShortIterator shortIterator()
ShortCollection
The 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 ShortCollection
Collection.iterator()
public IntIterator intIterator()
IntCollection
The 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 IntCollection
Collection.iterator()
public LongIterator longIterator()
LongCollection
The 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 LongCollection
Collection.iterator()
public FloatIterator floatIterator()
FloatCollection
The 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 FloatCollection
Collection.iterator()
public DoubleIterator doubleIterator()
DoubleCollection
The 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 DoubleCollection
Collection.iterator()
public ObjectIterator objectIterator()
ObjectCollection
The 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 ObjectCollection
Collection.iterator()
public ObjectIterator referenceIterator()
public int size()
size
in interface Collection
public void clear()
clear
in interface Collection
clear
in class AbstractObjectCollection
public int hashCode()
hashCode
in interface Collection
public boolean equals(Object o)
equals
in interface Collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |