java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
ContentList.FilterList
class ContentList.FilterList
FilterList
represents legal JDOM content, including content
for Document
s or Element
s.
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) Filter |
filter
The Filter |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ContentList.FilterList(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()
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
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 filter
int count
int expected
Constructor Detail |
---|
ContentList.FilterList(Filter filter)
Method Detail |
---|
public void add(int index, java.lang.Object obj)
add
in interface java.util.List
add
in class java.util.AbstractList
index
- The location to set the value to.obj
- The object to insert into the list.
throws IndexOutOfBoundsException if index < 0 || index > size()public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractList
index
- The offset of the object.
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in class java.util.AbstractList
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.AbstractList
index
- The offset of the object.
public java.lang.Object set(int index, java.lang.Object obj)
set
in interface java.util.List
set
in class java.util.AbstractList
index
- The location to set the value to.obj
- The location to set the value to.
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
private final int getAdjustedIndex(int index)
index
- Index of in this view.