Package pers.neige.neigeitems.config
Class MapConfigReader
-
- All Implemented Interfaces:
-
pers.neige.neigeitems.config.ConfigReader
public class MapConfigReader implements ConfigReader
-
-
Constructor Summary
Constructors Constructor Description MapConfigReader(Map<out Object, out Object> map)
-
Method Summary
Modifier and Type Method Description Map<out Object, out Object>
getHandle()
int
size()
Set<String>
keySet()
boolean
containsKey(@NonNull() String key)
Object
get(@NonNull() String key)
String
getString(@NonNull() String key)
String
getString(@NonNull() String key, @Nullable() String def)
int
getInt(@NonNull() String key)
int
getInt(@NonNull() String key, int def)
long
getLong(@NonNull() String key)
long
getLong(@NonNull() String key, long def)
double
getDouble(@NonNull() String key)
double
getDouble(@NonNull() String key, double def)
boolean
getBoolean(@NonNull() String key)
boolean
getBoolean(@NonNull() String key, boolean def)
List<String>
getStringList(@NonNull() String key)
List<Map<out Object, out Object>>
getMapList(@NonNull() String key)
ConfigReader
getConfig(@NonNull() String key)
-
-
Method Detail
-
size
int size()
-
containsKey
boolean containsKey(@NonNull() String key)
-
getString
@Contract(value = "_, !null -> !null")@Nullable() String getString(@NonNull() String key, @Nullable() String def)
-
getBoolean
boolean getBoolean(@NonNull() String key)
-
getBoolean
boolean getBoolean(@NonNull() String key, boolean def)
-
getStringList
@NonNull() List<String> getStringList(@NonNull() String key)
-
getConfig
@Nullable() ConfigReader getConfig(@NonNull() String key)
-
-
-
-