|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.schematic.internal.document.Paths.MultiSegmentPath
@Immutable @SerializeWith(value=Paths.Externalizer.class) protected static final class Paths.MultiSegmentPath
Constructor Summary | |
---|---|
protected |
Paths.MultiSegmentPath(List<String> fieldNames)
|
Method Summary | |
---|---|
int |
compareTo(Path that)
|
boolean |
equals(Object obj)
|
String |
get(int index)
Get a particular segment within this path. |
String |
getFirst()
Get the first segment in the path. |
String |
getLast()
Get the last segment in the path. |
int |
hashCode()
|
Iterator<String> |
iterator()
|
Path |
parent()
Get the parent path, which may be an empty path. |
int |
size()
Get the number of segments in this path. |
boolean |
startsWith(Path other)
Determine if the first segments of this path are equal to the segments in the supplied path. |
String |
toString()
|
Path |
with(String fieldName)
Obtain a path that has this path as the parent and which has as the last segment the supplied field name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Paths.MultiSegmentPath(List<String> fieldNames)
Method Detail |
---|
public Iterator<String> iterator()
iterator
in interface Iterable<String>
public String get(int index)
Path
get
in interface Path
index
- the 0-based index of the segment in this path
public String getLast()
Path
getLast
in interface Path
public String getFirst()
Path
getFirst
in interface Path
public int size()
Path
size
in interface Path
public boolean startsWith(Path other)
Path
startsWith
in interface Path
other
- the other path; may not be null
public Path with(String fieldName)
Path
with
in interface Path
fieldName
- the field name for the last segment in the new path; may be null
fieldName
parameter is null; never nullpublic Path parent()
Path
parent
in interface Path
public int hashCode()
hashCode
in class Object
public int compareTo(Path that)
compareTo
in interface Comparable<Path>
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |