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
ConstructorsConstructorDescriptionCaseInsensitivePathString(String... path) Create a new pathCaseInsensitivePathString(PathString pathString) Create a new path string -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]getPath()Get the original pathGet the originalPathStringinthashCode()static Map<CaseInsensitivePathString,Object> Convert a map ofPathStringto 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 ofPathStringto 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()
-