DocType, CDATA, Comment, Element, EntityRef, ProcessingInstruction, Text
| Modifier and Type | Class and Description |
|---|---|
| private class | ContentList.CLIterator
A fast implementation of Iterator. |
| private class | ContentList.CLListIterator
A fast implementation of Iterator. |
| pack-priv class | ContentList.FilterList<
The Generic type of content accepted by the underlying Filter. F extends Content>
|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private transient int | dataModiCount
modCount is used for concurrent modification, but dataModCount is used for refreshing filters. |
| private Content[] | elementData
Our backing list |
| private static final int | |
| private final Parent | parent
Document or Element this list belongs to |
| private int | size
The amount of valid content in elementData |
| private transient int | sizeModCount
Completely remove references to AbstractList.modCount because in ContentList it is confusing. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ContentList(final Parent
the Element this ContentList belongs to. parent)Force either a Document or Element parent |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(final int
index where to add index, final Content ElementContent to addOverrides java. Implements java. Content to this list at the given index.
|
| public boolean | Returns: true if the list was modified as a result of the
add.The collection to add to the list. collection)Overrides java. Implements java. |
| public boolean | Returns: true if the list was modified as a result of the
add. throws IndexOutOfBoundsException if index < 0 || index >
size()The offset to start adding the data in the collection index, final Collection<? extends Content> The collection to insert into the list. collection)Overrides java. Implements java. |
| private final int | Returns: the insertion point.THe pointers to search within indexes, final int The number of pointers to search within len, final int The pointer we are checking for. val, final Comparator<? super Content> The Comparator to compare with comp)Unlike the Arrays.binarySearch, this method never expects an "already exists" condition, we only ever add, thus there will never be a negative insertion-point. |
| private final void | |
| private final void | |
| public void | clear()
Overrides java. Implements java. |
| pack-priv void | clearAndSet(final Collection<? extends Content>
The collection to use. collection)Clear the current list and set it to the contents of the
|
| pack-priv void | ensureCapacity(final int
the desired minimum capacity. minCapacity)Increases the capacity of this |
| public Content | Returns: The Object which was returned.The offset of the object. index)Implements abstract java. Implements java. |
| private final int | |
| private final int | Returns: mod the value.In the FilterList and FilterList iterators it becomes confusing as to which modCount is being used. |
| pack-priv < The Generic type of the content as set by the Filter. E extends Content> List | |
| private final void | |
| private final void | incModCount()
In the FilterList and FilterList iterators it becomes confusing as to which modCount is being used. |
| pack-priv int | Returns: index of the DocType, or -1 if it doesn't existReturn the index of the DocType element in the list. |
| pack-priv int | Returns: index of first element, or -1 if one doesn't existReturn the index of the first Element in the list. |
| public Iterator | iterator()
Overrides java. Implements java. |
| public ListIterator | listIterator()
Overrides java. Implements java. |
| public ListIterator | listIterator(final int
index of the first element to be returned from the
list iterator (by a call to start)next)Overrides java. Implements java. |
| public Content | Returns: The Object which was removed.The offset of the object. index)Overrides java. Implements java. |
| private static void | |
| public Content | Returns: The object which was replaced. throws IndexOutOfBoundsException if index < 0 || index >= size()The location to set the value to. index, final Content The location to set the value to. child)Overrides java. Implements java. |
| private final void | setModCount(final int
the value to set for the size-mod count. sizemod, final int the value to set for the data-mod count. datamod)In the FilterList and FilterList iterators it becomes confusing as to which modCount is being used. |
| public int | Returns: The number of items in this list.Implements abstract java. Implements java. |
| public final void | sort(final Comparator<? super Content>
- the Comparator used to compare list elements. A null value indicates that the elements' natural ordering should be used comp)Overrides default java. |
| private void | |
| public String | Returns: The String representation of this list.Overrides java. String
|
| pack-priv final void | uncheckedAddContent(final Content
content to add without any checks c)Package internal method to support building from sources that are 100% trusted. |