|
|||||||||
| 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.FloatCollections.EmptyCollection
it.unimi.dsi.fastutil.floats.FloatLists.EmptyList
public static class FloatLists.EmptyList
An immutable class representing an empty type-specific list.
This class may be useful to implement your own in case you subclass a type-specific list.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Method Summary | |
|---|---|
boolean |
add(float k)
|
boolean |
add(Float k)
Delegates to the corresponding type-specific method. |
void |
add(int index,
float k)
|
void |
add(int index,
Float k)
|
boolean |
addAll(Collection<? extends Float> 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 c)
|
boolean |
addAll(int i,
Collection<? extends Float> c)
|
boolean |
addAll(int i,
FloatCollection c)
|
boolean |
addAll(int i,
FloatList c)
|
void |
addElements(int index,
float[] a)
Add (hopefully quickly) elements to this type-specific list. |
void |
addElements(int index,
float[] a,
int offset,
int length)
Add (hopefully quickly) elements to this type-specific list. |
Object |
clone()
|
int |
compareTo(List<? extends Float> o)
|
FloatIterator |
floatIterator()
Deprecated. |
FloatListIterator |
floatListIterator()
Deprecated. |
FloatListIterator |
floatListIterator(int i)
Deprecated. |
FloatList |
floatSubList(int from,
int to)
Deprecated. |
Float |
get(int i)
|
void |
getElements(int from,
float[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array. |
float |
getFloat(int i)
|
int |
indexOf(float k)
|
int |
indexOf(Object k)
|
int |
lastIndexOf(float k)
|
int |
lastIndexOf(Object k)
|
FloatListIterator |
listIterator()
Returns a type-specific list iterator on the list. |
FloatListIterator |
listIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
Float |
remove(int k)
|
boolean |
removeAll(Collection<?> c)
Remove from this collection all elements in the given collection. |
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list. |
float |
removeFloat(int i)
|
float |
set(int index,
float k)
|
Float |
set(int index,
Float k)
|
void |
size(int s)
Sets the size of this list. |
FloatList |
subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index from, inclusive, to the index to, exclusive. |
| Methods inherited from class it.unimi.dsi.fastutil.floats.FloatCollections.EmptyCollection |
|---|
clear, contains, containsAll, equals, hashCode, iterator, rem, removeAll, retainAll, size, toArray, toFloatArray, toFloatArray |
| Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatCollection |
|---|
contains, containsAll, isEmpty, rem, remove, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatList |
|---|
iterator |
| Methods inherited from interface java.util.List |
|---|
clear, contains, containsAll, equals, hashCode, isEmpty, remove, retainAll, size, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
|---|
contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArray |
| Field Detail |
|---|
public static final long serialVersionUID
| Method Detail |
|---|
public void add(int index,
float k)
add in interface FloatListList.add(int,Object)public boolean add(float k)
add in interface FloatCollectionadd in class FloatCollections.EmptyCollectionCollection.add(Object)public float removeFloat(int i)
removeFloat in interface FloatListList.remove(int)
public float set(int index,
float k)
set in interface FloatListList.set(int,Object)public int indexOf(float k)
indexOf in interface FloatListList.indexOf(Object)public int lastIndexOf(float k)
lastIndexOf in interface FloatListList.lastIndexOf(Object)public boolean addAll(Collection<? extends Float> c)
AbstractFloatCollection
addAll in interface Collection<Float>addAll in interface List<Float>addAll in class AbstractFloatCollectionc - a collection.
true if this collection changed as a result of the call.
public boolean addAll(int i,
Collection<? extends Float> c)
addAll in interface List<Float>public boolean removeAll(Collection<?> c)
AbstractFloatCollection
removeAll in interface Collection<Float>removeAll in interface List<Float>removeAll in class AbstractFloatCollectionc - a collection.
true if this collection changed as a result of the call.public Float get(int i)
get in interface List<Float>public boolean addAll(FloatCollection c)
AbstractFloatCollection
addAll in interface FloatCollectionaddAll in class FloatCollections.EmptyCollectionc - a type-specific collection.
true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean addAll(FloatList c)
addAll in interface FloatListList.add(int,Object)
public boolean addAll(int i,
FloatCollection c)
addAll in interface FloatListList.add(int,Object)
public boolean addAll(int i,
FloatList c)
addAll in interface FloatListList.add(int,Object)
public void add(int index,
Float k)
add in interface List<Float>public boolean add(Float k)
AbstractFloatCollection
add in interface Collection<Float>add in interface List<Float>add in class AbstractFloatCollection
public Float set(int index,
Float k)
set in interface List<Float>public float getFloat(int i)
getFloat in interface FloatListList.get(int)public Float remove(int k)
remove in interface List<Float>public int indexOf(Object k)
indexOf in interface List<Float>public int lastIndexOf(Object k)
lastIndexOf in interface List<Float>@Deprecated public FloatIterator floatIterator()
AbstractFloatCollection
floatIterator in interface FloatCollectionfloatIterator in class AbstractFloatCollectionFloatCollection.iterator()public FloatListIterator listIterator()
FloatList
listIterator in interface FloatListlistIterator in interface List<Float>FloatList.listIterator()public FloatListIterator listIterator(int i)
FloatList
listIterator in interface FloatListlistIterator in interface List<Float>FloatList.listIterator(int)@Deprecated public FloatListIterator floatListIterator()
FloatList
floatListIterator in interface FloatListFloatList.listIterator()@Deprecated public FloatListIterator floatListIterator(int i)
FloatList
floatListIterator in interface FloatListFloatList.listIterator(int)
public FloatList subList(int from,
int to)
FloatListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface FloatListsubList in interface List<Float>List.subList(int,int)
@Deprecated
public FloatList floatSubList(int from,
int to)
FloatListfrom, inclusive, to the index to, exclusive.
floatSubList in interface FloatListList.subList(int,int)
public void getElements(int from,
float[] a,
int offset,
int length)
FloatList
getElements in interface FloatListfrom - the start index (inclusive).a - the destination array.offset - the offset into the destination array where to store the first element copied.length - the number of elements to be copied.
public void removeElements(int from,
int to)
FloatList
removeElements in interface FloatListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
float[] a,
int offset,
int length)
FloatList
addElements in interface FloatListindex - the index at which to add elements.a - the array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.
public void addElements(int index,
float[] a)
FloatList
addElements in interface FloatListindex - the index at which to add elements.a - the array containing the elements.public void size(int s)
FloatListIf the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null/false.
size in interface FloatLists - the new size.public int compareTo(List<? extends Float> o)
compareTo in interface Comparable<List<? extends Float>>public Object clone()
clone in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||