Package com.mastfrog.graph
Class ObjectPath<T>
- java.lang.Object
-
- com.mastfrog.graph.ObjectPath<T>
-
- All Implemented Interfaces:
Comparable<ObjectPath>,Iterable<T>
public final class ObjectPath<T> extends Object implements Iterable<T>, Comparable<ObjectPath>
One path in an object graph.- Author:
- Tim Boudreau
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ObjectPath o)booleancontains(T obj)booleancontainsPath(ObjectPath<T> other)Tend()booleanequals(Object o)Tfirst()Tget(int i)inthashCode()intindexOf(T obj)booleanisEmpty()Iterator<T>iterator()Tlast()intsize()Tstart()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
size
public int size()
-
first
public T first()
-
last
public T last()
-
get
public T get(int i)
-
containsPath
public boolean containsPath(ObjectPath<T> other)
-
contains
public boolean contains(T obj)
-
indexOf
public int indexOf(T obj)
-
isEmpty
public boolean isEmpty()
-
start
public T start()
-
end
public T end()
-
compareTo
public int compareTo(ObjectPath o)
- Specified by:
compareToin interfaceComparable<T>
-
-