Package me.hsgamer.hscore.config
Class CaseInsensitivePathString
java.lang.Object
me.hsgamer.hscore.config.CaseInsensitivePathString
A variant of
PathString
that is case-insensitive.
Useful for config maps that need to be case-insensitive.-
Constructor Summary
ConstructorDescriptionCaseInsensitivePathString
(String... path) Create a new pathCaseInsensitivePathString
(PathString pathString) Create a new path string -
Method Summary
Modifier and TypeMethodDescriptionboolean
String[]
getPath()
Get the original pathGet the originalPathString
int
hashCode()
static Map<CaseInsensitivePathString,
Object> Convert a map ofPathString
to a map ofCaseInsensitivePathString
-
Constructor Details
-
CaseInsensitivePathString
Create a new path string- Parameters:
pathString
- the path string
-
CaseInsensitivePathString
Create a new path- Parameters:
path
- the path
-
-
Method Details
-
toCaseInsensitiveMap
public static Map<CaseInsensitivePathString,Object> toCaseInsensitiveMap(Map<PathString, Object> map) Convert a map ofPathString
to a map ofCaseInsensitivePathString
- Parameters:
map
- the map- Returns:
- the converted map
-
getPathString
Get the originalPathString
- Returns:
- the original
PathString
-
getPath
Get the original path- Returns:
- the original path
-
equals
-
hashCode
public int hashCode()
-