|
||||||||||
| 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 FloatCollectionadd in class AbstractFloatCollectionpublic boolean contains(float k)
contains in interface FloatCollectionCollection.contains(Object)public boolean addAll(List l)
public boolean addAll(Collection c)
AbstractFloatCollection
addAll in interface SetaddAll in class AbstractFloatCollectionc - a collection.
true if this collection changed as a result of the call.public boolean removeAll(Collection c)
AbstractFloatCollection
removeAll in interface SetremoveAll in class AbstractFloatCollectionc - a collection.
true if this collection changed as a result of the call.public boolean retainAll(Collection c)
AbstractFloatCollection
retainAll in interface SetretainAll in class AbstractFloatCollectionc - 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 FloatCollectionaddAll in class AbstractFloatCollectionc - a type-specific collection.
true if this collection changed as a result of the call.public boolean removeAll(FloatCollection c)
AbstractFloatCollection
removeAll in interface FloatCollectionremoveAll in class AbstractFloatCollectionc - a type-specific collection.
true if this collection changed as a result of the call.public boolean retainAll(FloatCollection c)
AbstractFloatCollection
retainAll in interface FloatCollectionretainAll in class AbstractFloatCollectionc - a type-specific collection.
true if this collection changed as a result of the call.public float[] toFloatArray()
FloatCollection
toFloatArray in interface FloatCollectiontoFloatArray in class AbstractFloatCollectionpublic 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 int size()
size in interface Setpublic Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||