Package eu.bandm.tools.ramus.ogma
Class Reading.Initializer
java.lang.Object
eu.bandm.tools.ramus.ogma.Reading.Initializer
A safe map of keys to initial values.
Operations guard against type errors, null references, and overwriting of entries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<A> voidadd(Reading.Key<A> key, A value) Associates a key with a value.
-
Constructor Details
-
Initializer
public Initializer()Creates a new empty instance.
-
-
Method Details
-
add
Associates a key with a value.- Type Parameters:
A- the value type- Parameters:
key- the keyvalue- the value- Throws:
NullPointerException- ifkeyorvalueis nullIllegalStateException- ifkeyis already associated with a value
-