public class MutableDictionary extends Dictionary
Constructor and Description |
---|
MutableDictionary()
Initialize a new empty Dictionary object.
|
MutableDictionary(Map<String,Object> data)
Initializes a new CBLDictionary object with dictionary content.
|
contains, count, encodeTo, equals, getBlob, getBoolean, getDate, getDouble, getFloat, getInt, getKeys, getLong, getNumber, getString, getValue, hashCode, isEmpty, iterator, toMap, toMutable
clone, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MutableDictionary()
public MutableDictionary(Map<String,Object> data)
data
- the dictionary object.public MutableDictionary setData(Map<String,Object> data)
data
- the dictionary object.public MutableDictionary setValue(String key, Object value)
key
- the key.value
- the object value.public MutableDictionary setString(String key, String value)
public MutableDictionary setNumber(String key, Number value)
public MutableDictionary setInt(String key, int value)
public MutableDictionary setLong(String key, long value)
public MutableDictionary setFloat(String key, float value)
public MutableDictionary setDouble(String key, double value)
public MutableDictionary setBoolean(String key, boolean value)
public MutableDictionary setBlob(String key, Blob value)
public MutableDictionary setDate(String key, Date value)
public MutableDictionary setArray(String key, Array value)
public MutableDictionary setDictionary(String key, Dictionary value)
public MutableDictionary remove(String key)
key
- the key.public MutableArray getArray(String key)
getArray
in class Dictionary
key
- the key.public MutableDictionary getDictionary(String key)
getDictionary
in class Dictionary
key
- the key.protected boolean isChanged()
protected void finalize() throws Throwable
finalize
in class Dictionary
Throwable
public int count()
public int getInt(String key)
public long getLong(String key)
public float getFloat(String key)
public double getDouble(String key)
public boolean getBoolean(String key)
public boolean contains(String key)