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(AbsoluteMapPath parent,
java.lang.String name)
Creates a new map path based on a parent map path.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AbsoluteMapPath 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.
|
RelativeMapPath |
getRelativeMapPathTo(MapPath mapPath)
Returns a map path of an another map path relative to this map path.
|
int |
hashCode() |
java.lang.String |
toString() |
public AbsoluteMapPath()
public AbsoluteMapPath(@NotNull AbsoluteMapPath parent, @NotNull java.lang.String name)
parent
- the parent map pathname
- the name of the child; "." or ".." are allowed@NotNull public java.lang.String getPath()
@NotNull public RelativeMapPath getRelativeMapPathTo(@NotNull MapPath mapPath)
mapPath
- the other map path@Nullable public java.lang.String getMapComponent()
null
. Relative map paths always return
null
.getMapComponent
in interface MapPath
public int compareTo(@NotNull AbsoluteMapPath o)
compareTo
in interface java.lang.Comparable<AbsoluteMapPath>
public boolean equals(@Nullable java.lang.Object obj)
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