Q. Contexts are used to add arbitrary
data that cannot be be mapped in a standard way to the money API, e.g. use case or customer specific
extensions or specialities.Superclasses of this class must be final, immutable, serializable and thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | data
The data map containing all values. |
| protected static final String | KEY_PROVIDER
Key for storing the target providers to be queried |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | AbstractContext(AbstractContextBuilder<?, ?>
the Builder. builder)Private constructor, used by |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public <T> T | |
| public <T> T | |
| public Boolean | Returns: the value, or null.the attribute's key, not null. key)Access a Boolean attribute. |
| public Double | |
| public Float | |
| public Integer | |
| public Set | |
| public Long | |
| public String | |
| public String | |
| public Class | |
| public int | |
| public boolean | Returns: true, if no attributes are set.Checks if the current instance has no attributes set. |
| public String |
| data | back to summary |
|---|---|
| pack-priv final Map<String, Object> data The data map containing all values. | |
| KEY_PROVIDER | back to summary |
|---|---|
| protected static final String KEY_PROVIDER Key for storing the target providers to be queried | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AbstractContext | back to summary |
|---|---|
| protected AbstractContext(AbstractContextBuilder<?, ?> builder) Private constructor, used by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public <T> T get(String key, Class<T> type) Access an attribute. | |
| get | back to summary |
|---|---|
| public <T> T get(Class<T> type) Access an attribute, hereby using the class name as key.
| |
| getBoolean | back to summary |
|---|---|
| public Boolean getBoolean(String key) Access a Boolean attribute. | |
| getDouble | back to summary |
|---|---|
| public Double getDouble(String key) Access a Double attribute. | |
| getFloat | back to summary |
|---|---|
| public Float getFloat(String key) Access a Float attribute. | |
| getInt | back to summary |
|---|---|
| public Integer getInt(String key) Access an Integer attribute. | |
| getKeys | back to summary |
|---|---|
| public Set Get the present keys of all entries with a given type, checking hereby if assignable. | |
| getLong | back to summary |
|---|---|
| public Long getLong(String key) Access a Long attribute. | |
| getProviderName | back to summary |
|---|---|
| public String getProviderName() Get the provider name of this context.
| |
| getText | back to summary |
|---|---|
| public String getText(String key) Access a String attribute. | |
| getType | back to summary |
|---|---|
| public Class Get the current attribute type. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Checks if the current instance has no attributes set. This is often the cases, when used in default cases.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |