public final class IntSeries
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
long |
get(int index)
This method will always returns a value, but keep in mind that
due to the nature of the circular buffer internal logic, if you pass
past the size, you will get the sames values again.
|
long |
last()
This method will always returns a value, if the series is empty
0 is returned. |
int |
size() |
java.lang.String |
toString() |
public long get(int index)
size() for a proper boundary check.
Usage example:
for (int i = min(series.size(), desired_count); i >= 0; i--) {
plotMyValueAt(i, series.get(i));
}
index - the value's indexpublic long last()
0 is returned.public int size()
public java.lang.String toString()
toString in class java.lang.Object