public enum Configuration extends java.lang.Enum<Configuration>
The Global Konik Configuration.
Try to load Konik Configuration from file io.konik.configuration.properties
.
System properties provided with the -Dio.konik* or `System.setProperties("io.konik*")
will override the file
content.
Enum Constant and Description |
---|
INSTANCE
The singleton configuration instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty(java.lang.String key)
Searches for the property with the specified key in this property list.
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Searches for the property with the specified key in this property list.
|
boolean |
stripTrailingZeros()
Indicate of Konik should strip the trailing zeros in all amounts.
|
java.lang.String |
toString() |
static Configuration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Configuration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Configuration INSTANCE
The singleton configuration instance.
public java.lang.String getProperty(java.lang.String key)
Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns <code>null</code> if the property is not found.
key
- the property key.getProperty(String, String)
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns the default value argument if the property is not found.
key
- the hashtable key.defaultValue
- a default value.getProperty(String)
public boolean stripTrailingZeros()
Indicate of Konik should strip the trailing zeros in all amounts.
public java.lang.String toString()
toString
in class java.lang.Enum<Configuration>
public static Configuration valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Configuration[] values()
for (Configuration c : Configuration.values()) System.out.println(c);
Copyright © 2014-2018 Konik.io. All Rights Reserved.