public class Configuration extends java.util.TreeMap<java.lang.String,Configuration.Entry> implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Configuration.Entry |
Modifier and Type | Field and Description |
---|---|
private java.io.File |
file |
protected boolean |
lazy |
private static long |
serialVersionUID |
Constructor and Description |
---|
Configuration() |
Configuration(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String key) |
boolean |
add(java.lang.String key,
java.lang.String comment) |
boolean |
add(java.lang.String key,
java.lang.String comment,
boolean enabled) |
void |
commit()
save the configuration back to the file
|
boolean |
contains(java.lang.String key)
override the abstract implementation because that is not stable in concurrent requests
|
boolean |
containsDisabled(java.lang.String o) |
java.util.Iterator<Configuration.Entry> |
entryIterator() |
static void |
main(java.lang.String[] args) |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
private static final long serialVersionUID
private final java.io.File file
protected boolean lazy
public Configuration()
public Configuration(java.io.File file) throws java.io.IOException
java.io.IOException
public boolean contains(java.lang.String key)
public boolean containsDisabled(java.lang.String o)
public boolean add(java.lang.String key)
public boolean add(java.lang.String key, java.lang.String comment)
public boolean add(java.lang.String key, java.lang.String comment, boolean enabled)
public void commit() throws java.io.IOException
java.io.IOException
public java.util.Iterator<Configuration.Entry> entryIterator()
public static void main(java.lang.String[] args)