@Beta public final class PropertyPath extends java.lang.Object implements java.lang.Iterable<PropertyPath.Element>
Modifier and Type | Class and Description |
---|---|
static class |
PropertyPath.Element
Immutable.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_DIVIDER |
static PropertyPath |
ROOT |
public static final PropertyPath ROOT
public static final java.lang.String ELEMENT_DIVIDER
public static PropertyPath from(PropertyPath parentPath, java.lang.String element)
public static PropertyPath from(PropertyPath parentPath, PropertyPath.Element element)
public static PropertyPath from(java.lang.Iterable<PropertyPath.Element> pathElements)
public static PropertyPath from(java.lang.String path)
public static PropertyPath from(java.lang.String parentPath, java.lang.String... children)
public static PropertyPath from(PropertyPath.Element... pathElements)
public PropertyPath getParent()
public boolean isRelative()
public java.lang.Iterable<java.lang.String> resolvePathElementNames()
public int elementCount()
public java.util.Iterator<PropertyPath.Element> iterator()
iterator
in interface java.lang.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)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object