| org.archive.crawler.settings.FloatList
FloatList | public class FloatList extends ListType (Code) | | List of Float values
author: John Erik Halse |
Constructor Summary | |
public | FloatList(String name, String description) Creates a new FloatList.
Parameters: name - of the list. Parameters: description - of the list. | public | FloatList(String name, String description, FloatList l) Creates a new FloatList and initializes it with the values from
another FloatList.
Parameters: name - of the list. Parameters: description - of the list. | public | FloatList(String name, String description, Float[] l) Creates a new FloatList and initializes it with the values from
an array of Floats.
Parameters: name - of the list. Parameters: description - of the list. | public | FloatList(String name, String description, float[] l) Creates a new FloatList and initializes it with the values from
an float array.
Parameters: name - of the list. Parameters: description - of the list. |
Method Summary | |
public void | add(int index, Float element) Add a new
java.lang.Float at the specified index to this list. | public void | add(int index, float element) Add a new float at the specified index to this list. | public void | add(Float element) Add a new
java.lang.Float at the end of this list. | public void | add(float element) Add a new float at the end of this list. | public void | addAll(FloatList 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(Float[] 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(float[] 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 Float | 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 Float before eventually throwing an exception.
Parameters: element - element to check. | public Float | set(int index, Float 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. |
FloatList | public FloatList(String name, String description)(Code) | | Creates a new FloatList.
Parameters: name - of the list. Parameters: description - of the list. This string should be suitable for usingin a user interface. |
FloatList | public FloatList(String name, String description, FloatList l)(Code) | | Creates a new FloatList and initializes it with the values from
another FloatList.
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. |
FloatList | public FloatList(String name, String description, Float[] l)(Code) | | Creates a new FloatList and initializes it with the values from
an array of Floats.
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. |
FloatList | public FloatList(String name, String description, float[] l)(Code) | | Creates a new FloatList and initializes it with the values from
an float 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, Float element)(Code) | | Add a new
java.lang.Float 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, float element)(Code) | | Add a new float 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(Float element)(Code) | | Add a new
java.lang.Float at the end of this list.
Parameters: element - the value to be added. |
add | public void add(float element)(Code) | | Add a new float at the end of this list.
Parameters: element - the value to be added. |
addAll | public void addAll(FloatList 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(Float[] 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(float[] 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 Float 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 Float 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 Float set(int index, Float 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. |
|
|