|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BasicFloatSet<E extends FloatSetElement>
Minimal set of functions needed for collections of FloatSetElements.
| Field Summary | |
|---|---|
static int |
NO_RECOMPUTE
A flag that may be passed to the delete method. |
static int |
PARTIAL_RECOMPUTE
A flag that may be passed to the delete method. |
static int |
RECOMPUTE_ALL
A flag that may be passed to the delete method. |
| Method Summary | |
|---|---|
void |
decrement(E el)
|
void |
delete(E el,
int recompute)
Delete an element from the set. |
E |
get(int i)
Get the ith element in the set. |
boolean |
isEmpty()
Check to see if the set has any elements. |
E |
lastElement()
Get the last element in the set, or null if the set is empty. |
| Methods inherited from interface ecologylab.collections.LinearAccess |
|---|
size |
| Field Detail |
|---|
static final int NO_RECOMPUTE
static final int PARTIAL_RECOMPUTE
static final int RECOMPUTE_ALL
| Method Detail |
|---|
void delete(E el,
int recompute)
el - The FloatSetElement element to delete.recompute - -1 for absolutely no recompute.
0 for recompute upwards from el.
1 for recompute all.E get(int i)
get in interface LinearAccess<E extends FloatSetElement>i -
E lastElement()
boolean isEmpty()
isEmpty in interface LinearAccess<E extends FloatSetElement>void decrement(E el)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||