@Beta public final class PropertyPath extends Object implements Iterable<PropertyPath.Element>
Modifier and Type | Class and Description |
---|---|
static class |
PropertyPath.Element
Immutable.
|
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_DIVIDER |
static PropertyPath |
ROOT |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final PropertyPath ROOT
public static final String ELEMENT_DIVIDER
public static PropertyPath from(PropertyPath parentPath, String element)
public static PropertyPath from(PropertyPath parentPath, PropertyPath.Element element)
public static PropertyPath from(Iterable<PropertyPath.Element> pathElements)
public static PropertyPath from(String path)
public static PropertyPath from(String parentPath, String... children)
public static PropertyPath from(PropertyPath.Element... pathElements)
public PropertyPath getParent()
public boolean isRelative()
public int elementCount()
public Iterator<PropertyPath.Element> iterator()
iterator
in interface Iterable<PropertyPath.Element>
public com.google.common.collect.ImmutableList<PropertyPath.Element> pathElements()
public PropertyPath.Element getFirstElement()
public PropertyPath.Element getLastElement()
public boolean startsWith(PropertyPath path)
public PropertyPath removeFirstPathElement()
public PropertyPath removeIndexFromLastElement()
public PropertyPath resetAllIndexesTo(int index)