|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStateDoubleVector
Describes an search vector with states (describing some history of the data structure).
Field Summary | |
---|---|
static Logger |
LOGGER
|
static int |
MIN_CAPACITY
Minimal capacity of a vector |
Method Summary | |
---|---|
void |
add(double i)
Adds a new search at the end of the vector. |
double |
get(int index)
Returns the index th element of the vector. |
DisposableIntIterator |
getIterator()
|
boolean |
isEmpty()
Checks if the vector is empty. |
double |
quickGet(int index)
return the indexth element of the vector without an bound check. |
double |
quickSet(int index,
double val)
Unsafe setter => don't do bound verification |
void |
remove(int i)
Removes an int. |
void |
removeLast()
removes the search at the end of the vector. |
double |
set(int index,
double val)
Assigns a new value val to the element index and returns
the old value |
int |
size()
Returns the current size of the stored search vector. |
Field Detail |
---|
static final Logger LOGGER
static final int MIN_CAPACITY
Method Detail |
---|
int size()
boolean isEmpty()
void add(double i)
i
- The search to add.void remove(int i)
i
- The search to remove.void removeLast()
double get(int index)
index
th element of the vector.
double quickGet(int index)
index
- index
double set(int index, double val)
val
to the element index
and returns
the old value
double quickSet(int index, double val)
index
- the index of the replaced valueval
- the new value
DisposableIntIterator getIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |