it.unimi.dsi.fastutil.floats
Class FloatLists.UnmodifiableList

java.lang.Object
  extended by it.unimi.dsi.fastutil.floats.FloatCollections.UnmodifiableCollection
      extended by it.unimi.dsi.fastutil.floats.FloatLists.UnmodifiableList
All Implemented Interfaces:
FloatCollection, FloatIterable, FloatList, Serializable, Comparable<List<? extends Float>>, Iterable<Float>, Collection<Float>, List<Float>
Enclosing class:
FloatLists

public static class FloatLists.UnmodifiableList
extends FloatCollections.UnmodifiableCollection
implements FloatList, Serializable

An unmodifiable wrapper class for lists.

See Also:
Serialized Form

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

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

getFloat

public float getFloat(int i)
Specified by:
getFloat in interface FloatList
See Also:
List.get(int)

set

public float set(int i,
                 float k)
Specified by:
set in interface FloatList
See Also:
List.set(int,Object)

add

public void add(int i,
                float k)
Specified by:
add in interface FloatList
See Also:
List.add(int,Object)

removeFloat

public float removeFloat(int i)
Specified by:
removeFloat in interface FloatList
See Also:
List.remove(int)

indexOf

public int indexOf(float k)
Specified by:
indexOf in interface FloatList
See Also:
List.indexOf(Object)

lastIndexOf

public int lastIndexOf(float k)
Specified by:
lastIndexOf in interface FloatList
See Also:
List.lastIndexOf(Object)

addAll

public boolean addAll(int index,
                      Collection<? extends Float> c)
Specified by:
addAll in interface List<Float>

getElements

public void getElements(int from,
                        float[] a,
                        int offset,
                        int length)
Description copied from interface: FloatList
Copies (hopefully quickly) elements of this type-specific list into the given array.

Specified by:
getElements in interface FloatList
Parameters:
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.

removeElements

public void removeElements(int from,
                           int to)
Description copied from interface: FloatList
Removes (hopefully quickly) elements of this type-specific list.

Specified by:
removeElements in interface FloatList
Parameters:
from - the start index (inclusive).
to - the end index (exclusive).

addElements

public void addElements(int index,
                        float[] a,
                        int offset,
                        int length)
Description copied from interface: FloatList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface FloatList
Parameters:
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.

addElements

public void addElements(int index,
                        float[] a)
Description copied from interface: FloatList
Add (hopefully quickly) elements to this type-specific list.

Specified by:
addElements in interface FloatList
Parameters:
index - the index at which to add elements.
a - the array containing the elements.

size

public void size(int size)
Description copied from interface: FloatList
Sets the size of this list.

If the specified size is smaller than the current size, the last elements are discarded. Otherwise, they are filled with 0/null/false.

Specified by:
size in interface FloatList
Parameters:
size - the new size.

listIterator

public FloatListIterator listIterator()
Description copied from interface: FloatList
Returns a type-specific list iterator on the list.

Specified by:
listIterator in interface FloatList
Specified by:
listIterator in interface List<Float>
See Also:
FloatList.listIterator()

listIterator

public FloatListIterator listIterator(int i)
Description copied from interface: FloatList
Returns a type-specific list iterator on the list starting at a given index.

Specified by:
listIterator in interface FloatList
Specified by:
listIterator in interface List<Float>
See Also:
FloatList.listIterator(int)

floatListIterator

@Deprecated
public FloatListIterator floatListIterator()
Deprecated. 

Description copied from interface: FloatList
Returns a type-specific list iterator on the list.

Specified by:
floatListIterator in interface FloatList
See Also:
FloatList.listIterator()

floatListIterator

@Deprecated
public FloatListIterator floatListIterator(int i)
Deprecated. 

Description copied from interface: FloatList
Returns a type-specific list iterator on the list starting at a given index.

Specified by:
floatListIterator in interface FloatList
See Also:
FloatList.listIterator(int)

subList

public FloatList subList(int from,
                         int to)
Description copied from interface: FloatList
Returns a type-specific view of the portion of this list from the index from, inclusive, to the index to, exclusive.

Note that this specification strengthens the one given in List.subList(int,int).

Specified by:
subList in interface FloatList
Specified by:
subList in interface List<Float>
See Also:
List.subList(int,int)

floatSubList

@Deprecated
public FloatList floatSubList(int from,
                                         int to)
Deprecated. 

Description copied from interface: FloatList
Returns a type-specific view of the portion of this list from the index from, inclusive, to the index to, exclusive.

Specified by:
floatSubList in interface FloatList
See Also:
List.subList(int,int)

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<Float>
Specified by:
equals in interface List<Float>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<Float>
Specified by:
hashCode in interface List<Float>
Overrides:
hashCode in class Object

compareTo

public int compareTo(List<? extends Float> o)
Specified by:
compareTo in interface Comparable<List<? extends Float>>

addAll

public boolean addAll(int index,
                      FloatCollection c)
Specified by:
addAll in interface FloatList
See Also:
List.add(int,Object)

addAll

public boolean addAll(FloatList l)
Specified by:
addAll in interface FloatList
See Also:
List.add(int,Object)

addAll

public boolean addAll(int index,
                      FloatList l)
Specified by:
addAll in interface FloatList
See Also:
List.add(int,Object)

get

public Float get(int i)
Specified by:
get in interface List<Float>

add

public void add(int i,
                Float k)
Specified by:
add in interface List<Float>

set

public Float set(int index,
                 Float k)
Specified by:
set in interface List<Float>

remove

public Float remove(int i)
Specified by:
remove in interface List<Float>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<Float>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<Float>