|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.floats.AbstractFloatCollection
it.unimi.dsi.fastutil.floats.AbstractFloatSet
it.unimi.dsi.fastutil.floats.FloatSets.Singleton
An immutable class representing a type-specific singleton set.
This class may be useful to implement your own in case you subclass a type-specific set.
Field Summary | |
static long |
serialVersionUID
|
Method Summary | |
boolean |
add(float k)
|
boolean |
addAll(Collection c)
Adds all elements of the given collection to this collection. |
boolean |
addAll(FloatCollection c)
Adds all elements of the given type-specific collection to this collection. |
boolean |
addAll(FloatList l)
|
boolean |
addAll(List l)
|
Object |
clone()
|
boolean |
contains(float k)
|
FloatIterator |
floatIterator()
Returns a type-specific iterator on the collection. |
boolean |
removeAll(Collection c)
Remove from this collection all elements in the given collection. |
boolean |
removeAll(FloatCollection c)
Remove from this collection all elements in the given type-specific collection. |
boolean |
retainAll(Collection c)
Retains in this collection only elements from the given collection. |
boolean |
retainAll(FloatCollection c)
Retains in this collection only elements from the given type-specific collection. |
int |
size()
|
float[] |
toFloatArray()
Returns a primitive type array containing the items of this collection. |
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatSet |
equals, hashCode, iterator, rem, remove, remove |
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatCollection |
add, clear, contains, containsAll, containsAll, isEmpty, iterator, rem, toArray, toArray, toArray, toFloatArray, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
add, clear, contains, containsAll, isEmpty, iterator, toArray, toArray |
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
containsAll, toArray, toFloatArray |
Field Detail |
public static final long serialVersionUID
Method Detail |
public boolean add(float k)
add
in interface FloatCollection
add
in class AbstractFloatCollection
public boolean contains(float k)
contains
in interface FloatCollection
Collection.contains(Object)
public boolean addAll(List l)
public boolean addAll(Collection c)
AbstractFloatCollection
addAll
in interface Set
addAll
in class AbstractFloatCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean removeAll(Collection c)
AbstractFloatCollection
removeAll
in interface Set
removeAll
in class AbstractFloatCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean retainAll(Collection c)
AbstractFloatCollection
retainAll
in interface Set
retainAll
in class AbstractFloatCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean addAll(FloatList l)
public boolean addAll(FloatCollection c)
AbstractFloatCollection
addAll
in interface FloatCollection
addAll
in class AbstractFloatCollection
c
- a type-specific collection.
true
if this collection changed as a result of the call.public boolean removeAll(FloatCollection c)
AbstractFloatCollection
removeAll
in interface FloatCollection
removeAll
in class AbstractFloatCollection
c
- a type-specific collection.
true
if this collection changed as a result of the call.public boolean retainAll(FloatCollection c)
AbstractFloatCollection
retainAll
in interface FloatCollection
retainAll
in class AbstractFloatCollection
c
- a type-specific collection.
true
if this collection changed as a result of the call.public float[] toFloatArray()
FloatCollection
toFloatArray
in interface FloatCollection
toFloatArray
in class AbstractFloatCollection
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 int size()
size
in interface Set
public Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |