Package me.hsgamer.hscore.config
Interface PathString
public interface PathString
The utility class for path in
Config-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic String[]Get the path as arraystatic String[]Concatenate two pathsstatic StringJoin the path with the separatorJoin the path with the separatorstatic StringjoinDefault(String... path) Join the path with the default separatorjoinDefault(Map<String[], Object> map) Join the path with the default separatorstatic String[]Split the path with the separatorSplit the path with the separatorstatic String[]splitDefault(String path) Split the path with the default separatorsplitDefault(Map<String, Object> map) Split the path with the default separator
-
Field Details
-
DEFAULT_SEPARATOR
The default separator- See Also:
-
-
Method Details
-
asArray
Get the path as array- Parameters:
path- the path- Returns:
- the path as array
-
concat
Concatenate two paths- Parameters:
a1- the first patha2- the second path- Returns:
- the concatenated path
-
join
Join the path with the separator- Parameters:
separator- the separatorpath- the path- Returns:
- the joined path
-
split
Split the path with the separator- Parameters:
separator- the separatorpath- the path- Returns:
- the split path
-
join
Join the path with the separator- Parameters:
separator- the separatormap- the map containing the path- Returns:
- the map containing the joined path
-
split
Split the path with the separator- Parameters:
separator- the separatormap- the map containing the path- Returns:
- the map containing the split path
-
joinDefault
Join the path with the default separator- Parameters:
path- the path- Returns:
- the joined path
-
splitDefault
Split the path with the default separator- Parameters:
path- the path- Returns:
- the split path
-
joinDefault
Join the path with the default separator- Parameters:
map- the map containing the path- Returns:
- the map containing the joined path
-
splitDefault
Split the path with the default separator- Parameters:
map- the map containing the path- Returns:
- the map containing the split path
-