Package com.gentics.api.lib.resolving
Class NestedCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector
-
- com.gentics.api.lib.resolving.NestedCollection
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable
,Collection
,List
,RandomAccess
public class NestedCollection extends Vector
This class is just a wrapper aroung a vector. The com.gentics.api.lib.resolving.PropertyResolver might return instances of this class for property paths that contain collections of objects on the way to the resolved attribute (but not the last part of the property path).Example: When resolving the property
object.users.name
where users returns a collection of linked objects, the resulting collection is an instance of this class.- Author:
- norbert
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection
innerCollection
-
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description NestedCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Object element)
boolean
add(Object o)
boolean
addAll(int index, Collection c)
boolean
addAll(Collection c)
void
addElement(Object obj)
void
clear()
Collection
getInnerCollection()
Get the inner collection (unmodifiable)-
Methods inherited from class java.util.Vector
capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
-
-
-
Field Detail
-
innerCollection
protected Collection innerCollection
-
-
Method Detail
-
add
public void add(int index, Object element)
-
add
public boolean add(Object o)
-
addAll
public boolean addAll(Collection c)
-
addAll
public boolean addAll(int index, Collection c)
-
addElement
public void addElement(Object obj)
- Overrides:
addElement
in classVector
-
clear
public void clear()
-
getInnerCollection
public Collection getInnerCollection()
Get the inner collection (unmodifiable)- Returns:
- inner collection
-
-