|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.Attribute org.archive.crawler.settings.Type org.archive.crawler.settings.ListType<java.lang.Double> org.archive.crawler.settings.DoubleList
public class DoubleList
List of Double values
Constructor Summary | |
---|---|
DoubleList(java.lang.String name,
java.lang.String description)
Creates a new DoubleList. |
|
DoubleList(java.lang.String name,
java.lang.String description,
double[] l)
Creates a new DoubleList and initializes it with the values from an double array. |
|
DoubleList(java.lang.String name,
java.lang.String description,
java.lang.Double[] l)
Creates a new DoubleList and initializes it with the values from an array of Doubles. |
|
DoubleList(java.lang.String name,
java.lang.String description,
DoubleList l)
Creates a new DoubleList and initializes it with the values from another DoubleList. |
Method Summary | |
---|---|
void |
add(double element)
Add a new double at the end of this list. |
void |
add(java.lang.Double element)
Add a new Double at the end of this list. |
void |
add(int index,
double element)
Add a new double at the specified index to this list. |
void |
add(int index,
java.lang.Double element)
Add a new Double at the specified index to this list. |
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. |
void |
addAll(java.lang.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. |
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. |
java.lang.Double |
checkType(java.lang.Object element)
Check if element is of right type for this list. |
java.lang.Double |
set(int index,
java.lang.Double element)
Replaces the element at the specified position in this list with the specified element. |
Methods inherited from class org.archive.crawler.settings.ListType |
---|
add, add, addAll, addAll, addAll, clear, contains, containsAll, get, getDefaultValue, getDescription, getLegalValues, getValue, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, typesafe |
Methods inherited from class org.archive.crawler.settings.Type |
---|
addConstraint, equals, getConstraints, getLegalValueType, isExpertSetting, isOverrideable, isTransient, setExpertSetting, setLegalValueType, setOverrideable, setTransient |
Methods inherited from class javax.management.Attribute |
---|
getName, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
equals, hashCode |
Constructor Detail |
---|
public DoubleList(java.lang.String name, java.lang.String description)
name
- of the list.description
- of the list. This string should be suitable for using
in a user interface.public DoubleList(java.lang.String name, java.lang.String description, DoubleList l)
name
- of the list.description
- of the list. This string should be suitable for using
in a user interface.l
- the list from which this lists gets its initial values.public DoubleList(java.lang.String name, java.lang.String description, java.lang.Double[] l)
name
- of the list.description
- of the list. This string should be suitable for using
in a user interface.l
- the array from which this lists gets its initial values.public DoubleList(java.lang.String name, java.lang.String description, double[] l)
name
- of the list.description
- of the list. This string should be suitable for using
in a user interface.l
- the array from which this lists gets its initial values.Method Detail |
---|
public void add(int index, java.lang.Double element)
Double
at the specified index to this list.
index
- index at which the specified element is to be inserted.element
- the value to be added.public void add(int index, double element)
double
at the specified index to this list.
index
- index at which the specified element is to be inserted.element
- the value to be added.public void add(java.lang.Double element)
Double
at the end of this list.
element
- the value to be added.public void add(double element)
element
- the value to be added.public void addAll(DoubleList l)
l
- list whose elements are to be added to this list.public void addAll(java.lang.Double[] l)
l
- array whose elements are to be added to this list.public void addAll(double[] l)
l
- array whose elements are to be added to this list.public java.lang.Double set(int index, java.lang.Double element)
index
- index at which the specified element is to be inserted.element
- element to be inserted.
public java.lang.Double checkType(java.lang.Object element) throws java.lang.ClassCastException
checkType
in class ListType<java.lang.Double>
element
- element to check.
java.lang.ClassCastException
- is thrown if the element was of wrong type
and could not be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |