|
||||||||||
| 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<E>
java.util.ArrayList<T>
ecologylab.collections.ArrayListFloatSet<T>
public class ArrayListFloatSet<T extends FloatSetElement>
A set of FloatSetElements, that uses ArrayList as the storage medium.
| Field Summary |
|---|
| Fields inherited from interface ecologylab.collections.BasicFloatSet |
|---|
NO_RECOMPUTE, PARTIAL_RECOMPUTE, RECOMPUTE_ALL |
| Constructor Summary | |
|---|---|
ArrayListFloatSet()
|
|
ArrayListFloatSet(java.util.Collection arg0)
|
|
ArrayListFloatSet(int arg0)
|
|
| Method Summary | |
|---|---|
void |
decrement(T el)
|
void |
delete(T el,
int recompute)
Delete an element from the set. |
T |
getElement(int i)
Get the ith element in the set. |
void |
insert(T element)
|
T |
lastElement()
Get the last element in the set, or null if the set is empty. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ecologylab.collections.BasicFloatSet |
|---|
get, isEmpty |
| Methods inherited from interface ecologylab.collections.LinearAccess |
|---|
size |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public ArrayListFloatSet()
public ArrayListFloatSet(int arg0)
arg0 - public ArrayListFloatSet(java.util.Collection arg0)
arg0 - | Method Detail |
|---|
public void delete(T el,
int recompute)
delete in interface BasicFloatSet<T extends FloatSetElement>el - The FloatSetElement element to delete.recompute - -1 for absolutely no recompute.
0 for recompute upwards from el.
1 for recompute all.public void insert(T element)
public T getElement(int i)
i -
public T lastElement()
lastElement in interface BasicFloatSet<T extends FloatSetElement>public void decrement(T el)
decrement in interface BasicFloatSet<T extends FloatSetElement>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||