| org.archive.crawler.settings.DoubleList
DoubleList | public class DoubleList extends ListType (Code) | | List of Double values
author: John Erik Halse |
Constructor Summary | |
public | DoubleList(String name, String description) Creates a new DoubleList.
Parameters: name - of the list. Parameters: description - of the list. | public | DoubleList(String name, String description, DoubleList l) Creates a new DoubleList and initializes it with the values from
another DoubleList.
Parameters: name - of the list. Parameters: description - of the list. | public | DoubleList(String name, String description, Double[] l) Creates a new DoubleList and initializes it with the values from
an array of Doubles.
Parameters: name - of the list. Parameters: description - of the list. | public | DoubleList(String name, String description, double[] l) Creates a new DoubleList and initializes it with the values from
an double array.
Parameters: name - of the list. Parameters: description - of the list. |
Method Summary | |
public void | add(int index, Double element) Add a new
java.lang.Double at the specified index to this list. | public void | add(int index, double element) Add a new double at the specified index to this list. | public void | add(Double element) Add a new
java.lang.Double at the end of this list. | public void | add(double element) Add a new double at the end of this list. | public void | addAll(DoubleList l) Appends all of the elements in the specified list to the end of this
list, in the order that they are returned by the specified lists's
iterator. | public void | addAll(Double[] l) Appends all of the elements in the specified array to the end of this
list, in the same order that they are in the array. | public void | addAll(double[] l) Appends all of the elements in the specified array to the end of this
list, in the same order that they are in the array. | public Double | checkType(Object element) Check if element is of right type for this list.
If this method gets a String, it tries to convert it to
the an Double before eventually throwing an exception.
Parameters: element - element to check. | public Double | set(int index, Double element) Replaces the element at the specified position in this list with the
specified element.
Parameters: index - index at which the specified element is to be inserted. Parameters: element - element to be inserted. |
DoubleList | public DoubleList(String name, String description)(Code) | | Creates a new DoubleList.
Parameters: name - of the list. Parameters: description - of the list. This string should be suitable for usingin a user interface. |
DoubleList | public DoubleList(String name, String description, DoubleList l)(Code) | | Creates a new DoubleList and initializes it with the values from
another DoubleList.
Parameters: name - of the list. Parameters: description - of the list. This string should be suitable for usingin a user interface. Parameters: l - the list from which this lists gets its initial values. |
DoubleList | public DoubleList(String name, String description, Double[] l)(Code) | | Creates a new DoubleList and initializes it with the values from
an array of Doubles.
Parameters: name - of the list. Parameters: description - of the list. This string should be suitable for usingin a user interface. Parameters: l - the array from which this lists gets its initial values. |
DoubleList | public DoubleList(String name, String description, double[] l)(Code) | | Creates a new DoubleList and initializes it with the values from
an double array.
Parameters: name - of the list. Parameters: description - of the list. This string should be suitable for usingin a user interface. Parameters: l - the array from which this lists gets its initial values. |
add | public void add(int index, Double element)(Code) | | Add a new
java.lang.Double at the specified index to this list.
Parameters: index - index at which the specified element is to be inserted. Parameters: element - the value to be added. |
add | public void add(int index, double element)(Code) | | Add a new double at the specified index to this list.
Parameters: index - index at which the specified element is to be inserted. Parameters: element - the value to be added. |
add | public void add(double element)(Code) | | Add a new double at the end of this list.
Parameters: element - the value to be added. |
addAll | public void addAll(DoubleList l)(Code) | | Appends all of the elements in the specified list to the end of this
list, in the order that they are returned by the specified lists's
iterator.
The behavior of this operation is unspecified if the specified
collection is modified while the operation is in progress.
Parameters: l - list whose elements are to be added to this list. |
addAll | public void addAll(Double[] l)(Code) | | Appends all of the elements in the specified array to the end of this
list, in the same order that they are in the array.
Parameters: l - array whose elements are to be added to this list. |
addAll | public void addAll(double[] l)(Code) | | Appends all of the elements in the specified array to the end of this
list, in the same order that they are in the array.
Parameters: l - array whose elements are to be added to this list. |
checkType | public Double checkType(Object element) throws ClassCastException(Code) | | Check if element is of right type for this list.
If this method gets a String, it tries to convert it to
the an Double before eventually throwing an exception.
Parameters: element - element to check. element of the right type. throws: ClassCastException - is thrown if the element was of wrong typeand could not be converted. |
set | public Double set(int index, Double element)(Code) | | Replaces the element at the specified position in this list with the
specified element.
Parameters: index - index at which the specified element is to be inserted. Parameters: element - element to be inserted. the element previously at the specified position. |
|
|