Klasse ConfigFile.Reader
java.lang.Object
de.voxelmap.voxelconfig.ConfigFile.Reader
- Umschließende Klasse:
ConfigFile
Reader for accessing parsed config values with type-safe defaults.
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungbooleangetBoolean(String key, boolean defaultValue) Returns a boolean value, ordefaultValueif the key is absent.floatReturns a float value clamped to [min,max], ordefaultValueif absent.intReturns an int value clamped to [min,max], ordefaultValueif absent.Returns the raw string value, ordefaultValueif the key is absent.booleanReturns whether a key exists in the config file.
-
Methodendetails
-
getString
-
getBoolean
Returns a boolean value, ordefaultValueif the key is absent. -
getInt
Returns an int value clamped to [min,max], ordefaultValueif absent. -
getFloat
Returns a float value clamped to [min,max], ordefaultValueif absent. -
has
Returns whether a key exists in the config file.
-