Package net.sf.gridarta.model.mapmodel
Class MapPathUtils
- java.lang.Object
-
- net.sf.gridarta.model.mapmodel.MapPathUtils
-
public class MapPathUtils extends java.lang.ObjectUtility class forMapPathrelated functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull AbsoluteMapPathappend(@NotNull AbsoluteMapPath baseMapPath, @NotNull MapPath mapPath)Appends a map path to another map path.static @NotNull RelativeMapPathappend(@NotNull RelativeMapPath baseMapPath, @NotNull RelativeMapPath mapPath)Appends a map path to another map path.static @NotNull AbsoluteMapPathnewAbsoluteMapPath(@NotNull java.lang.String string)Creates anAbsoluteMapPathinstance from string representation.static @NotNull MapPathnewMapPath(@NotNull java.lang.String string)Creates aMapPathinstance from string representation.static @NotNull RelativeMapPathnewRelativeMapPath(@NotNull java.lang.String string)Creates aRelativeMapPathinstance from string representation.
-
-
-
Method Detail
-
newMapPath
@NotNull public static @NotNull MapPath newMapPath(@NotNull @NotNull java.lang.String string)
Creates aMapPathinstance from string representation. Ignores excess "/" characters.- Parameters:
string- the string representation- Returns:
- the map path instance
-
newAbsoluteMapPath
@NotNull public static @NotNull AbsoluteMapPath newAbsoluteMapPath(@NotNull @NotNull java.lang.String string)
Creates anAbsoluteMapPathinstance from string representation. Ignores excess "/" characters.- Parameters:
string- the string representation- Returns:
- the map path instance
-
newRelativeMapPath
@NotNull public static @NotNull RelativeMapPath newRelativeMapPath(@NotNull @NotNull java.lang.String string)
Creates aRelativeMapPathinstance from string representation. Ignores excess "/" characters.- Parameters:
string- the string representation- Returns:
- the map path instance
-
append
@NotNull public static @NotNull AbsoluteMapPath append(@NotNull @NotNull AbsoluteMapPath baseMapPath, @NotNull @NotNull MapPath mapPath)
Appends a map path to another map path.- Parameters:
baseMapPath- the base map path to append tomapPath- the map path to append- Returns:
- the combined path
-
append
@NotNull public static @NotNull RelativeMapPath append(@NotNull @NotNull RelativeMapPath baseMapPath, @NotNull @NotNull RelativeMapPath mapPath)
Appends a map path to another map path.- Parameters:
baseMapPath- the base map path to append tomapPath- the map path to append- Returns:
- the combined path
-
-