Package score
Interface DictDB<K,V>
-
- Type Parameters:
K
- Key type. It shall be String, byte array, Address, Byte, Short, Integer, Long, Character or BigInteger.V
- Value type. It shall be readable and writable class.
public interface DictDB<K,V>
A dictionary DB is a hash from key to value. Only values of the dictionary DB is recorded in the DB. Keys are not recorded.- See Also:
ObjectReader
,ObjectWriter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
get(K key)
Returns the value for a keyV
getOrDefault(K key, V defaultValue)
Returns the value for a key ordefaultValue
if the value isnull
.void
set(K key, V value)
Sets a value for a key
-