|
|||||||||
| Home >> All >> org >> [ jdom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jdom
Class ContentList.FilterList

java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.jdom.ContentList.FilterList
- All Implemented Interfaces:
- java.util.Collection, java.lang.Iterable, java.util.List, java.io.Serializable
- Enclosing class:
- ContentList
- class ContentList.FilterList
- extends java.util.AbstractList
- implements java.io.Serializable
- extends java.util.AbstractList
FilterList represents legal JDOM content, including content
for Documents or Elements.
| Nested Class Summary |
| Nested classes inherited from class java.util.AbstractList |
|
| Field Summary | |
(package private) int |
count
Current number of items in this view |
(package private) int |
expected
Expected modCount in our backing list |
(package private) org.jdom.filter.Filter |
filter
The Filter |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
(package private) |
ContentList.FilterList(org.jdom.filter.Filter filter)
Create a new instance of the FilterList with the specified Filter. |
| Method Summary | |
void |
add(int index,
java.lang.Object obj)
Inserts the specified object at the specified position in this list. |
java.lang.Object |
get(int index)
Return the object at the specified offset. |
private int |
getAdjustedIndex(int index)
Return the adjusted index |
java.util.Iterator |
iterator()
Obtain an Iterator over this list, whose sequence is the list order. |
java.util.ListIterator |
listIterator()
Obtain a ListIterator over this list, starting at the beginning. |
java.util.ListIterator |
listIterator(int index)
Obtain a ListIterator over this list, starting at a given position. |
java.lang.Object |
remove(int index)
Remove the object at the specified offset. |
java.lang.Object |
set(int index,
java.lang.Object obj)
Set the object at the specified location to the supplied object. |
int |
size()
Return the number of items in this list |
| Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Field Detail |
filter
org.jdom.filter.Filter filter
- The Filter
count
int count
- Current number of items in this view
expected
int expected
- Expected modCount in our backing list
| Constructor Detail |
ContentList.FilterList
ContentList.FilterList(org.jdom.filter.Filter filter)
- Create a new instance of the FilterList with the specified Filter.
| Method Detail |
add
public void add(int index,
java.lang.Object obj)
- Inserts the specified object at the specified position in this list.
Shifts the object currently at that position (if any) and any
subsequent objects to the right (adds one to their indices).
- Specified by:
addin interfacejava.util.List
get
public java.lang.Object get(int index)
- Return the object at the specified offset.
- Specified by:
getin interfacejava.util.List
iterator
public java.util.Iterator iterator()
- Description copied from class:
java.util.AbstractList - Obtain an Iterator over this list, whose sequence is the list order.
This implementation uses size(), get(int), and remove(int) of the
backing list, and does not support remove unless the list does. This
implementation is fail-fast if you correctly maintain modCount.
Also, this implementation is specified by Sun to be distinct from
listIterator, although you could easily implement it as
return listIterator(0).- Specified by:
iteratorin interfacejava.util.List
listIterator
public java.util.ListIterator listIterator()
- Description copied from class:
java.util.AbstractList - Obtain a ListIterator over this list, starting at the beginning. This
implementation returns listIterator(0).
- Specified by:
listIteratorin interfacejava.util.List
listIterator
public java.util.ListIterator listIterator(int index)
- Description copied from class:
java.util.AbstractList - Obtain a ListIterator over this list, starting at a given position.
A first call to next() would return the same as get(index), and a
first call to previous() would return the same as get(index - 1).
This implementation uses size(), get(int), set(int, Object), add(int, Object), and remove(int) of the backing list, and does not support remove, set, or add unless the list does. This implementation is fail-fast if you correctly maintain modCount.
- Specified by:
listIteratorin interfacejava.util.List
remove
public java.lang.Object remove(int index)
- Remove the object at the specified offset.
- Specified by:
removein interfacejava.util.List
set
public java.lang.Object set(int index, java.lang.Object obj)
- Set the object at the specified location to the supplied
object.
- Specified by:
setin interfacejava.util.List
size
public int size()
- Return the number of items in this list
- Specified by:
sizein interfacejava.util.List
getAdjustedIndex
private final int getAdjustedIndex(int index)
- Return the adjusted index
|
|||||||||
| Home >> All >> org >> [ jdom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC