|
||||||||||
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<T>
public abstract class ListType<T>
Super type for all lists.
Constructor Summary | |
---|---|
ListType(java.lang.String name,
java.lang.String description)
Constructs a new ListType. |
Method Summary | ||
---|---|---|
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this list. |
|
boolean |
add(java.lang.Object element)
Appends the specified element to the end of this list. |
|
boolean |
addAll(java.util.Collection<? extends java.lang.Object> c)
|
|
boolean |
addAll(int index,
java.util.Collection<? extends java.lang.Object> c)
|
|
protected void |
addAll(ListType<T> 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. |
|
abstract T |
checkType(java.lang.Object element)
Check if element is of right type for this list. |
|
void |
clear()
Removes all elements from this list. |
|
boolean |
contains(java.lang.Object o)
|
|
boolean |
containsAll(java.util.Collection c)
|
|
java.lang.Object |
get(int index)
Returns the object stored at the index specified |
|
java.lang.Object |
getDefaultValue()
The default value for this type |
|
java.lang.String |
getDescription()
Get the description of this type The description should be suitable for showing in a user interface. |
|
java.lang.Object[] |
getLegalValues()
The getLegalValues is not applicable for list so this method will always return null. |
|
java.lang.Object |
getValue()
Returns this object. |
|
int |
indexOf(java.lang.Object o)
|
|
boolean |
isEmpty()
Returns true if this list contains no elements. |
|
java.util.Iterator<java.lang.Object> |
iterator()
Returns an iterator over the elements in this list in proper sequence. |
|
int |
lastIndexOf(java.lang.Object o)
|
|
java.util.ListIterator<java.lang.Object> |
listIterator()
|
|
java.util.ListIterator<java.lang.Object> |
listIterator(int index)
|
|
java.lang.Object |
remove(int index)
|
|
boolean |
remove(java.lang.Object o)
|
|
boolean |
removeAll(java.util.Collection c)
|
|
boolean |
retainAll(java.util.Collection c)
|
|
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position in this list with the specified element. |
|
int |
size()
Get the number of elements in this list. |
|
java.util.List<java.lang.Object> |
subList(int fromIndex,
int toIndex)
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(X[] a)
|
|
java.util.List<T> |
typesafe()
Returns a compile-time typesafe version of this list. |
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 ListType(java.lang.String name, java.lang.String description)
name
- the name of the listdescription
- the description of the listMethod Detail |
---|
public boolean add(java.lang.Object element)
add
in interface java.util.Collection<java.lang.Object>
add
in interface java.util.List<java.lang.Object>
element
- element to be appended to this list.
java.lang.ClassCastException
- is thrown if the element was of wrong type
and could not be converted.public void add(int index, java.lang.Object element)
add
in interface java.util.List<java.lang.Object>
index
- index at which the specified element is to be inserted.element
- element to be inserted.
java.lang.ClassCastException
- is thrown if the element was of wrong type
and could not be converted.protected void addAll(ListType<T> l)
l
- list whose elements are to be added to this list.public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List<java.lang.Object>
index
- index at which the specified element is to be inserted.element
- element to be inserted.
java.lang.ClassCastException
- is thrown if the element was of wrong type
and could not be converted.public java.util.Iterator<java.lang.Object> iterator()
iterator
in interface java.lang.Iterable<java.lang.Object>
iterator
in interface java.util.Collection<java.lang.Object>
iterator
in interface java.util.List<java.lang.Object>
public int size()
size
in interface java.util.Collection<java.lang.Object>
size
in interface java.util.List<java.lang.Object>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Object>
isEmpty
in interface java.util.List<java.lang.Object>
public abstract T checkType(java.lang.Object element) throws java.lang.ClassCastException
element
- element to check.
java.lang.ClassCastException
- is thrown if the element was of wrong type
and could not be converted.public java.lang.Object getDefaultValue()
Type
getDefaultValue
in class Type
public java.lang.String getDescription()
Type
getDescription
in class Type
public void clear()
clear
in interface java.util.Collection<java.lang.Object>
clear
in interface java.util.List<java.lang.Object>
public java.lang.Object get(int index)
get
in interface java.util.List<java.lang.Object>
index
- The location of the object to get within the list.
public java.lang.Object[] getLegalValues()
getLegalValues
in class Type
Type.getLegalValues()
public java.lang.Object getValue()
Attribute
.
getValue
in class javax.management.Attribute
Attribute.getValue()
public boolean addAll(java.util.Collection<? extends java.lang.Object> c)
addAll
in interface java.util.Collection<java.lang.Object>
addAll
in interface java.util.List<java.lang.Object>
public boolean addAll(int index, java.util.Collection<? extends java.lang.Object> c)
addAll
in interface java.util.List<java.lang.Object>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<java.lang.Object>
contains
in interface java.util.List<java.lang.Object>
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection<java.lang.Object>
containsAll
in interface java.util.List<java.lang.Object>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<java.lang.Object>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<java.lang.Object>
public java.util.ListIterator<java.lang.Object> listIterator()
listIterator
in interface java.util.List<java.lang.Object>
public java.util.ListIterator<java.lang.Object> listIterator(int index)
listIterator
in interface java.util.List<java.lang.Object>
public java.util.List<java.lang.Object> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<java.lang.Object>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<java.lang.Object>
toArray
in interface java.util.List<java.lang.Object>
public <X> X[] toArray(X[] a)
toArray
in interface java.util.Collection<java.lang.Object>
toArray
in interface java.util.List<java.lang.Object>
public java.lang.Object remove(int index)
remove
in interface java.util.List<java.lang.Object>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<java.lang.Object>
remove
in interface java.util.List<java.lang.Object>
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection<java.lang.Object>
removeAll
in interface java.util.List<java.lang.Object>
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection<java.lang.Object>
retainAll
in interface java.util.List<java.lang.Object>
public java.util.List<T> typesafe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |