|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.floats.FloatCollections.UnmodifiableCollection
it.unimi.dsi.fastutil.floats.FloatLists.UnmodifiableList
public static class FloatLists.UnmodifiableList
An unmodifiable wrapper class for lists.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Method Summary | |
---|---|
void |
add(int i,
float k)
|
void |
add(int i,
Float k)
|
boolean |
addAll(FloatList l)
|
boolean |
addAll(int index,
Collection<? extends Float> c)
|
boolean |
addAll(int index,
FloatCollection c)
|
boolean |
addAll(int index,
FloatList l)
|
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. |
int |
compareTo(List<? extends Float> o)
|
boolean |
equals(Object o)
|
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 |
hashCode()
|
int |
indexOf(float k)
|
int |
indexOf(Object o)
|
int |
lastIndexOf(float k)
|
int |
lastIndexOf(Object o)
|
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 i)
|
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list. |
float |
removeFloat(int i)
|
float |
set(int i,
float k)
|
Float |
set(int index,
Float k)
|
void |
size(int size)
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.UnmodifiableCollection |
---|
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, floatIterator, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toFloatArray, toFloatArray, 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 |
---|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
---|
add, addAll, contains, containsAll, floatIterator, rem, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArray |
Field Detail |
---|
public static final long serialVersionUID
Method Detail |
---|
public float getFloat(int i)
getFloat
in interface FloatList
List.get(int)
public float set(int i, float k)
set
in interface FloatList
List.set(int,Object)
public void add(int i, float k)
add
in interface FloatList
List.add(int,Object)
public float removeFloat(int i)
removeFloat
in interface FloatList
List.remove(int)
public int indexOf(float k)
indexOf
in interface FloatList
List.indexOf(Object)
public int lastIndexOf(float k)
lastIndexOf
in interface FloatList
List.lastIndexOf(Object)
public boolean addAll(int index, Collection<? extends Float> c)
addAll
in interface List<Float>
public void getElements(int from, float[] a, int offset, int length)
FloatList
getElements
in interface FloatList
from
- 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 FloatList
from
- the start index (inclusive).to
- the end index (exclusive).public void addElements(int index, float[] a, int offset, int length)
FloatList
addElements
in interface FloatList
index
- 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 FloatList
index
- the index at which to add elements.a
- the array containing the elements.public void size(int size)
FloatList
If 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 FloatList
size
- the new size.public FloatListIterator listIterator()
FloatList
listIterator
in interface FloatList
listIterator
in interface List<Float>
FloatList.listIterator()
public FloatListIterator listIterator(int i)
FloatList
listIterator
in interface FloatList
listIterator
in interface List<Float>
FloatList.listIterator(int)
@Deprecated public FloatListIterator floatListIterator()
FloatList
floatListIterator
in interface FloatList
FloatList.listIterator()
@Deprecated public FloatListIterator floatListIterator(int i)
FloatList
floatListIterator
in interface FloatList
FloatList.listIterator(int)
public FloatList subList(int from, int to)
FloatList
from
, inclusive, to the index to
, exclusive.
Note that this specification strengthens the one given in List.subList(int,int)
.
subList
in interface FloatList
subList
in interface List<Float>
List.subList(int,int)
@Deprecated public FloatList floatSubList(int from, int to)
FloatList
from
, inclusive, to the index to
, exclusive.
floatSubList
in interface FloatList
List.subList(int,int)
public boolean equals(Object o)
equals
in interface Collection<Float>
equals
in interface List<Float>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<Float>
hashCode
in interface List<Float>
hashCode
in class Object
public int compareTo(List<? extends Float> o)
compareTo
in interface Comparable<List<? extends Float>>
public boolean addAll(int index, FloatCollection c)
addAll
in interface FloatList
List.add(int,Object)
public boolean addAll(FloatList l)
addAll
in interface FloatList
List.add(int,Object)
public boolean addAll(int index, FloatList l)
addAll
in interface FloatList
List.add(int,Object)
public Float get(int i)
get
in interface List<Float>
public void add(int i, Float k)
add
in interface List<Float>
public Float set(int index, Float k)
set
in interface List<Float>
public Float remove(int i)
remove
in interface List<Float>
public int indexOf(Object o)
indexOf
in interface List<Float>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Float>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |