|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.collection.SortedDoubleVector
public class SortedDoubleVector
Sorted, reference-counting set based on an ArrayList implementation that it being kept sorted.
Constructor Summary | |
---|---|
SortedDoubleVector()
Constructor. |
|
SortedDoubleVector(java.util.ArrayList<java.lang.Double> values)
|
Method Summary | |
---|---|
void |
add(double value)
Add a value to the collection. |
void |
clear()
Clear out the collection. |
protected int |
findInsertIndex(double value)
Returns the index into which to insert to. |
double |
getValue(int index)
Returns the value at a given index. |
java.util.ArrayList<java.lang.Double> |
getValues()
Returns underlying ArrayList, for testing purposes only. |
void |
remove(double value)
Remove a value from the collection. |
int |
size()
Returns the number of items in the collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortedDoubleVector()
public SortedDoubleVector(java.util.ArrayList<java.lang.Double> values)
Method Detail |
---|
public void clear()
public int size()
public double getValue(int index)
index
- for which to return value for
public void add(double value)
value
- is the double-type value to addpublic void remove(double value)
value
- to remove
java.lang.IllegalStateException
- if the value has not been addedpublic java.util.ArrayList<java.lang.Double> getValues()
protected int findInsertIndex(double value)
value
- to find insert index
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |