public class AbsoluteMapPath extends java.lang.Object implements java.lang.Comparable<AbsoluteMapPath>, MapPath
MapPath that is absolute, that is, it starts with a "/".| Constructor and Description |
|---|
AbsoluteMapPath()
Creates a new instance.
|
AbsoluteMapPath(@NotNull AbsoluteMapPath parent,
@NotNull java.lang.String name)
Creates a new map path based on a parent map path.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull AbsoluteMapPath o) |
boolean |
equals(@Nullable java.lang.Object obj) |
@Nullable java.lang.String |
getMapComponent()
Returns the initial path component of a map path.
|
@NotNull java.lang.String |
getPath()
Returns the map path information.
|
@NotNull RelativeMapPath |
getRelativeMapPathFrom(@NotNull AbsoluteMapPath mapPath)
Returns this map path relative to another map path.
|
int |
hashCode() |
java.lang.String |
toString() |
public AbsoluteMapPath()
public AbsoluteMapPath(@NotNull
@NotNull AbsoluteMapPath parent,
@NotNull
@NotNull java.lang.String name)
parent - the parent map pathname - the name of the child; "." or ".." are allowed@NotNull public @NotNull java.lang.String getPath()
MapPath@Nullable public @Nullable java.lang.String getMapComponent()
MapPathnull. Relative map paths always return
null.getMapComponent in interface MapPath@NotNull public @NotNull RelativeMapPath getRelativeMapPathFrom(@NotNull @NotNull AbsoluteMapPath mapPath)
MapPathgetRelativeMapPathFrom in interface MapPathmapPath - the other map pathpublic int compareTo(@NotNull
@NotNull AbsoluteMapPath o)
compareTo in interface java.lang.Comparable<AbsoluteMapPath>public boolean equals(@Nullable
@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