|
||||||||||
| 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<Long>
org.apache.mahout.math.list.adapter.LongListAdapter
@Deprecated public class LongListAdapter
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
LongListAdapter(AbstractLongList content)
Deprecated. Constructs a list backed by the specified content list. |
|
| Method Summary | |
|---|---|
void |
add(int index,
Long element)
Deprecated. Inserts the specified element at the specified position in this list (optional operation). |
Long |
get(int index)
Deprecated. Returns the element at the specified position in this list. |
Long |
remove(int index)
Deprecated. Removes the element at the specified position in this list (optional operation). |
Long |
set(int index,
Long 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 LongListAdapter(AbstractLongList content)
| Method Detail |
|---|
public void add(int index,
Long element)
add in interface List<Long>add in class AbstractList<Long>index - index at which the specified element is to be inserted.element - element to be inserted.
ClassCastException - if the class of the specified element prevents it from being added to this list.
IllegalArgumentException - if some aspect of the specified element prevents it from being added to this
list.
IndexOutOfBoundsException - index is out of range (index < 0 || index > size()).public Long get(int index)
get in interface List<Long>get in class AbstractList<Long>index - index of element to return.
IndexOutOfBoundsException - if the given index is out of range (index < 0 || index >=
size()).public Long remove(int index)
remove in interface List<Long>remove in class AbstractList<Long>index - the index of the element to remove.
IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index >=
size()).
public Long set(int index,
Long element)
set in interface List<Long>set in class AbstractList<Long>index - index of element to replace.element - element to be stored at the specified position.
ClassCastException - if the class of the specified element prevents it from being added to this list.
IllegalArgumentException - if some aspect of the specified element prevents it from being added to this
list.
IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index >=
size()).public int size()
size in interface Collection<Long>size in interface List<Long>size in class AbstractCollection<Long>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||