Package de.xima.fc.helper
Class ObjectGraphValues
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Object>
-
- de.xima.fc.helper.ObjectGraphValues
-
public final class ObjectGraphValues extends AbstractList<Object>
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ObjectGraphValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcontainer()Gets the container of the field being visited.Objectget(int index)Objectroot()Gets the root object being visited.intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, 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.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
container
public Object container()
Gets the container of the field being visited. Shortcut for callingget(0).- Returns:
- The container object.
-
get
public Object get(int index)
-
root
public Object root()
Gets the root object being visited. Shortcut for callingget(size() - 1).- Returns:
- The root object.
-
size
public int size()
- Specified by:
sizein interfaceCollection<Object>- Specified by:
sizein interfaceList<Object>- Specified by:
sizein classAbstractCollection<Object>
-
-