|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.util.DoubleSequence
uka.util.DoubleQueue
Queue of values of type double.
| Field Summary | |
private EnlargingDoubleArray |
data
Stores the data of this queue. |
static int |
MIN_FREE
|
(package private) int |
readPos
The next value will be read() from data at
index readPos. |
(package private) int |
writePos
The next value will be written into data at index writePos. |
| Fields inherited from class uka.util.DoubleSequence |
EMPTY |
| Constructor Summary | |
DoubleQueue()
|
|
| Method Summary | |
void |
appendTo(ToString s)
This method should append the contents of each instance variable of the current
object to the given ToString object. |
void |
clear()
Removes all values from this queue. |
double |
get(int index)
|
boolean |
hasNext()
Indicates whether more double values can be returned by this iterator. |
boolean |
isEmpty()
Checks, whether this queue is empty. |
double |
next()
Read from this queue via the iterator interface. |
double |
read()
Read the next value from this queue. |
int |
size()
Returns the number of values that are currently in this queue. |
double |
top()
Return the next value from this queue without removing it. |
void |
write(double value)
Write the given value into this queue. |
| Methods inherited from class uka.util.DoubleSequence |
remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MIN_FREE
int writePos
written into data at index writePos.
int readPos
read() from data at
index readPos.
private final EnlargingDoubleArray data
readPos,
writePos| Constructor Detail |
public DoubleQueue()
| Method Detail |
public double read()
public double top()
public double get(int index)
public void write(double value)
public boolean isEmpty()
public int size()
public boolean hasNext()
DoubleIterator
hasNext in interface DoubleIteratornext()public double next()
Read from this queue via the iterator interface.
next in interface DoubleIteratorDoubleIterator.hasNext()public void clear()
public void appendTo(ToString s)
Printableappend the contents of each instance variable of the current
object to the given ToString object. The appended data
should be labeled with the name of the corresponding instance
variable.
appendTo in interface PrintableToString,
ToString.append(String, Object),
ToString.append(String, boolean),
ToString.append(String, byte),
ToString.append(String, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||