|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<java.lang.Float>
org.apache.mahout.math.list.adapter.FloatListAdapter
@Deprecated public class FloatListAdapter
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
FloatListAdapter(AbstractFloatList content)
Deprecated. Constructs a list backed by the specified content list. |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Float element)
Deprecated. Inserts the specified element at the specified position in this list (optional operation). |
java.lang.Float |
get(int index)
Deprecated. Returns the element at the specified position in this list. |
protected static java.lang.Object |
object(float element)
Deprecated. Transforms an element of a primitive data type to an object. |
java.lang.Float |
remove(int index)
Deprecated. Removes the element at the specified position in this list (optional operation). |
java.lang.Float |
set(int index,
java.lang.Float element)
Deprecated. Replaces the element at the specified position in this list with the specified element (optional operation). |
int |
size()
Deprecated. Returns the number of elements in this list. |
Methods inherited from class java.util.AbstractList |
---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public FloatListAdapter(AbstractFloatList content)
Method Detail |
---|
public void add(int index, java.lang.Float element)
add
in interface java.util.List<java.lang.Float>
add
in class java.util.AbstractList<java.lang.Float>
index
- index at which the specified element is to be inserted.element
- element to be inserted.
java.lang.ClassCastException
- if the class of the specified element prevents it from being added to this list.
java.lang.IllegalArgumentException
- if some aspect of the specified element prevents it from being added to this
list.
java.lang.IndexOutOfBoundsException
- index is out of range (index < 0 || index > size()).public java.lang.Float get(int index)
get
in interface java.util.List<java.lang.Float>
get
in class java.util.AbstractList<java.lang.Float>
index
- index of element to return.
java.lang.IndexOutOfBoundsException
- if the given index is out of range (index < 0 || index >=
size()).protected static java.lang.Object object(float element)
public java.lang.Float remove(int index)
remove
in interface java.util.List<java.lang.Float>
remove
in class java.util.AbstractList<java.lang.Float>
index
- the index of the element to remove.
java.lang.IndexOutOfBoundsException
- if the specified index is out of range (index < 0 || index >=
size()).public java.lang.Float set(int index, java.lang.Float element)
set
in interface java.util.List<java.lang.Float>
set
in class java.util.AbstractList<java.lang.Float>
index
- index of element to replace.element
- element to be stored at the specified position.
java.lang.ClassCastException
- if the class of the specified element prevents it from being added to this list.
java.lang.IllegalArgumentException
- if some aspect of the specified element prevents it from being added to this
list.
java.lang.IndexOutOfBoundsException
- if the specified index is out of range (index < 0 || index >=
size()).public int size()
size
in interface java.util.Collection<java.lang.Float>
size
in interface java.util.List<java.lang.Float>
size
in class java.util.AbstractCollection<java.lang.Float>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |