public class RelativeMapPath extends java.lang.Object implements java.lang.Comparable<RelativeMapPath>, MapPath
| Constructor and Description |
|---|
RelativeMapPath()
Creates a new instance.
|
RelativeMapPath(AbsoluteMapPath sourceMapPath,
AbsoluteMapPath destinationMapPath)
Creates a new instance as the difference between two absolute map paths.
|
RelativeMapPath(RelativeMapPath parent,
java.lang.String name)
Creates a new map path based on a parent map path.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RelativeMapPath o) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMapComponent()
Returns the initial path component of a map path.
|
java.lang.String |
getPath()
Returns the map path information.
|
int |
hashCode() |
java.lang.String |
toString() |
public RelativeMapPath()
public RelativeMapPath(@NotNull
RelativeMapPath parent,
@NotNull
java.lang.String name)
parent - the parent map pathname - the name of the child; "." or ".." are allowedpublic RelativeMapPath(@NotNull
AbsoluteMapPath sourceMapPath,
@NotNull
AbsoluteMapPath destinationMapPath)
sourceMapPath - the source map path to start fromdestinationMapPath - the destination map path to point to@NotNull public java.lang.String getPath()
@Nullable public java.lang.String getMapComponent()
null. Relative map paths always return
null.getMapComponent in interface MapPathpublic int compareTo(@NotNull
RelativeMapPath o)
compareTo in interface java.lang.Comparable<RelativeMapPath>public boolean equals(@Nullable
java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object