|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<java.lang.Long>
org.ow2.clif.analyze.statistics.util.data.ListOfLong
public class ListOfLong
ListOfLong : a list of long with convenient management tools and stuff for statistics as sum, squareSum. Should be more up to date than LongVector.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ListOfLong()
constructor of an empty ListOfLong. |
|
ListOfLong(int initialCapacity)
Constructs an empty list of long with the specified initial capacity. |
|
ListOfLong(ListOfLong listOfLong)
Constructs a list of long containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
Method Summary | |
---|---|
void |
addAll(ListOfLong listOfLong)
adds all element |
void |
addLong(long longValue)
adds a long element |
double |
getSquareSum()
gets the list squareSum |
double |
getSum()
gets the list sum |
long |
longAt(int index)
long value at the specified position in this list. |
void |
removeLongAt(int index)
remove long value at the specified position in this list. |
void |
reset()
resets ListOfLong |
void |
setSquareSum(double squareSum)
|
void |
setSum(double sum)
|
java.lang.String |
toString()
toString defines the string representative of all long values. |
java.lang.String |
toString(int numberOfColumn)
toString defines the string representative of all long values as an Array of supplied number of columns. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public ListOfLong()
public ListOfLong(int initialCapacity)
initialCapacity
- public ListOfLong(ListOfLong listOfLong)
listOfLong
- Method Detail |
---|
public void reset()
public void addLong(long longValue)
longValue
- the long to addLongpublic void addAll(ListOfLong listOfLong)
listOfLong
- the ListOfLong to addLongpublic void removeLongAt(int index)
index
- the positionpublic long longAt(int index)
index
- the position
public double getSum()
public void setSum(double sum)
public double getSquareSum()
public void setSquareSum(double squareSum)
public java.lang.String toString(int numberOfColumn)
numberOfColumn
- the number of columns to format the values.
public java.lang.String toString()
toString
in class java.util.AbstractCollection<java.lang.Long>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |