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