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