@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 |
Modifier and Type | Method and Description |
---|---|
int |
elementCount() |
boolean |
equals(Object o) |
static PropertyPath |
from(Iterable<PropertyPath.Element> pathElements) |
static PropertyPath |
from(PropertyPath.Element... pathElements) |
static PropertyPath |
from(PropertyPath parentPath,
PropertyPath.Element element) |
static PropertyPath |
from(PropertyPath parentPath,
String element) |
static PropertyPath |
from(String path) |
static PropertyPath |
from(String parentPath,
String... children) |
PropertyPath.Element |
getFirstElement() |
PropertyPath.Element |
getLastElement() |
PropertyPath |
getParent() |
int |
hashCode() |
boolean |
isRelative() |
Iterator<PropertyPath.Element> |
iterator() |
ImmutableList<PropertyPath.Element> |
pathElements() |
PropertyPath |
removeFirstPathElement() |
PropertyPath |
removeIndexFromLastElement() |
PropertyPath |
resetAllIndexesTo(int index) |
Iterable<String> |
resolvePathElementNames() |
boolean |
startsWith(PropertyPath path) |
String |
toString() |
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 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)