| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.AbstractSequentialList | +--java.util.LinkedList | +--org.jdom.PartialList
PartialList
defines a List
that contains only part of a larger List
,
yet is still completely backed by that List
.
Constructor Summary | |
PartialList(List backingList, Element parent) As a starting point, take in the List
that is the backing behind this List . | |
PartialList(List backingList) As a starting point, take in the List
that is the backing behind this List . |
Method Summary | |
boolean | add(Object o) Appends the specified element to the end of this list. |
void | add(int index, Object current) Inserts the specified element at the specified position in this list. |
boolean | addAll(Collection c) Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator. |
boolean | addAll(int index, Collection c) Inserts all of the elements in the specified collection into this list, starting at the specified position. |
void | addFirst(Object o) Inserts the given element at the beginning of this list. |
void | addLast(Object o) Appends the given element to the end of this list. |
void | clear() Removes all of the elements from this list. |
boolean | remove(Object o) Removes the first occurrence of the specified element in this list. |
Object | remove(int index) Removes the element at the specified position in this list. |
Object | removeFirst() Removes and returns the first element from this list. |
Object | removeLast() Removes and returns the last element from this list. |
Object | set(int index, Object current) Replaces the element at the specified position in this list with the specified element. |
Methods inherited from class java.util.LinkedList |
getFirst, getLast, contains, size, get, indexOf, lastIndexOf, listIterator, clone, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
iterator |
Methods inherited from class java.util.AbstractList |
listIterator, subList, equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
isEmpty, containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PartialList(List backingList, Element parent)
As a starting point, take in the List
that is the backing behind this List
.
It also takes the Element
that is the
parent of this List
and the children
that it contains.
List
that backs thispublic PartialList(List backingList)
As a starting point, take in the List
that is the backing behind this List
.
List
that backs thisMethod Detail |
public boolean add(Object o)
public void add(int index, Object current)
public boolean addAll(Collection c)
public boolean addAll(int index, Collection c)
public void addFirst(Object o)
public void addLast(Object o)
public void clear()
public boolean remove(Object o)
public Object remove(int index)
public Object removeFirst()
public Object removeLast()
public Object set(int index, Object current)
Association Links |
List
to Class org.jdom.Element
Element
(if applicable) of the list
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |