Class FOMList<T>
- java.lang.Object
-
- java.util.AbstractCollection<T>
-
- org.apache.abdera.parser.stax.util.FOMList<T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
@Deprecated public class FOMList<T> extends AbstractCollection<T> implements List<T>
Deprecated.Legacy AEM 6.x API.Implements an ElementSet around an internal buffered iterator. Here's the rationale: Axiom parses incrementally. Using the iterators provided by Axiom, we can walk a set of elements while preserving the incremental parsing model, however, if we went with just java.util.Iterator, we'd lose the ability to do things like feed.getEntries().get(0), or use the new Java5 style iterators for (Entry e : feed.getEntries()). However, using a regular java.util.List also isn't a great option because it means we have to iterate through all of the elements before returning back to the caller. This gives us a hybrid approach. We create an internal iterator, then create a List from that, the iterator is consumed as the list is used. The List itself is unmodifiable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(int index, T element)Deprecated.booleanadd(T o)Deprecated.booleanaddAll(int index, Collection c)Deprecated.booleanaddAll(Collection c)Deprecated.voidclear()Deprecated.booleancontains(Object o)Deprecated.booleancontainsAll(Collection c)Deprecated.Tget(int index)Deprecated.List<T>getAsList()Deprecated.intindexOf(Object o)Deprecated.booleanisEmpty()Deprecated.Iterator<T>iterator()Deprecated.intlastIndexOf(Object o)Deprecated.ListIterator<T>listIterator()Deprecated.ListIterator<T>listIterator(int index)Deprecated.Tremove(int index)Deprecated.booleanremove(Object o)Deprecated.booleanremoveAll(Collection c)Deprecated.booleanretainAll(Collection c)Deprecated.Tset(int index, T element)Deprecated.intsize()Deprecated.List<T>subList(int fromIndex, int toIndex)Deprecated.Object[]toArray()Deprecated.Object[]toArray(Object[] a)Deprecated.-
Methods inherited from class java.util.AbstractCollection
toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
size
public int size()
Deprecated.- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
add
public boolean add(T o)
Deprecated.- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractCollection<T>
-
addAll
public boolean addAll(Collection c)
Deprecated.- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>- Overrides:
addAllin classAbstractCollection<T>
-
addAll
public boolean addAll(int index, Collection c)Deprecated.
-
clear
public void clear()
Deprecated.- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractCollection<T>
-
contains
public boolean contains(Object o)
Deprecated.- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceList<T>- Overrides:
containsin classAbstractCollection<T>
-
containsAll
public boolean containsAll(Collection c)
Deprecated.- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>- Overrides:
containsAllin classAbstractCollection<T>
-
isEmpty
public boolean isEmpty()
Deprecated.- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
lastIndexOf
public int lastIndexOf(Object o)
Deprecated.- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
public ListIterator<T> listIterator()
Deprecated.- Specified by:
listIteratorin interfaceList<T>
-
listIterator
public ListIterator<T> listIterator(int index)
Deprecated.- Specified by:
listIteratorin interfaceList<T>
-
remove
public boolean remove(Object o)
Deprecated.- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractCollection<T>
-
removeAll
public boolean removeAll(Collection c)
Deprecated.- Specified by:
removeAllin interfaceCollection<T>- Specified by:
removeAllin interfaceList<T>- Overrides:
removeAllin classAbstractCollection<T>
-
retainAll
public boolean retainAll(Collection c)
Deprecated.- Specified by:
retainAllin interfaceCollection<T>- Specified by:
retainAllin interfaceList<T>- Overrides:
retainAllin classAbstractCollection<T>
-
toArray
public Object[] toArray()
Deprecated.- Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Overrides:
toArrayin classAbstractCollection<T>
-
-