public class ListOfLong
extends java.util.ArrayList<java.lang.Long>
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public ListOfLong()
public ListOfLong(int initialCapacity)
initialCapacity
- public ListOfLong(ListOfLong listOfLong)
listOfLong
- 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 positionpublic 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>