Function data wrapper. A subclass must be used for an access
to the property values by all functions. It takes care about the timestamp
and additional metadata. The subclasses are responsible to provide concrete
value and unit if required.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DESCRIPTION
Metadata key, which value represents the data description. |
| public static final String | FIELD_METADATA
Represents the metadata field name. |
| public static final String | FIELD_TIMESTAMP
Represents the timestamp field name. |
| private final Map | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | FunctionData(Map<String, ?>
Contains the new fields)FunctionData instance field
values.Constructs new |
| public | FunctionData(long
The data timestamp optional field. timestamp, Map<String, ?> The data metadata optional field. metadata)Constructs new |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | compareArraysDeep(Object thisArray, Object otherArray, IdentityHashMap<Object, Object> thisUsedContainers)
|
| private static int | |
| private static int | compareMapsDeep(Map<?, ?> thisMap, Map<?, ?> otherMap, IdentityHashMap<Object, Object> thisUsedContainers)
|
| public int | Returns: -1, 0 or 1 depending on the comparison
rules.FunctionData to be compared.Implements java. Compares this |
| private static int | compareValuesDeep(Object thisValue, Object otherValue, IdentityHashMap<Object, Object> thisUsedContainers)
|
| public boolean | Returns: true if this instance and argument have equivalent
metadata and timestamp, false otherwise.The other instance to compare. It must be of
other)FunctionData type.Overrides java. Two |
| public Map | Returns: FunctionData metadata or null is there is no
metadata.Returns |
| public long | |
| public int | Returns: FunctionData hash code.Overrides java. Returns the hash code of this |
| DESCRIPTION | back to summary |
|---|---|
| public static final String DESCRIPTION Metadata key, which value represents the data description. The property
value type is | |
| FIELD_METADATA | back to summary |
|---|---|
| public static final String FIELD_METADATA Represents the metadata field name. The field value is available with
| |
| FIELD_TIMESTAMP | back to summary |
|---|---|
| public static final String FIELD_TIMESTAMP Represents the timestamp field name. The field value is available with
| |
| metadata | back to summary |
|---|---|
| private final Map<String, ?> metadata | |
| timestamp | back to summary |
|---|---|
| private final long timestamp | |
| FunctionData | back to summary |
|---|---|
| public FunctionData(Map<String, ?> fields) Constructs new
| |
| FunctionData | back to summary |
|---|---|
| public FunctionData(long timestamp, Map<String, ?> metadata) Constructs new | |
| calculateArrayHashCodeDeep | back to summary |
|---|---|
| private static int calculateArrayHashCodeDeep(Object array, IdentityHashMap<Object, Object> usedContainers) | |
| calculateMapHashCode | back to summary |
|---|---|
| private static int calculateMapHashCode(Map<?, ?> map) | |
| calculateMapHashCodeDeep | back to summary |
|---|---|
| private static int calculateMapHashCodeDeep(Map<?, ?> map, IdentityHashMap<Object, Object> usedContainers) | |
| calculateValueHashCodeDeep | back to summary |
|---|---|
| private static int calculateValueHashCodeDeep(Object value, IdentityHashMap<Object, Object> usedContainers) | |
| compare | back to summary |
|---|---|
| private static int compare(int thisValue, int otherValue) | |
| compareArraysDeep | back to summary |
|---|---|
| private static int compareArraysDeep(Object thisArray, Object otherArray, IdentityHashMap<Object, Object> thisUsedContainers) | |
| compareMaps | back to summary |
|---|---|
| private static int compareMaps(Map<?, ?> thisMap, Map<?, ?> otherMap) | |
| compareMapsDeep | back to summary |
|---|---|
| private static int compareMapsDeep(Map<?, ?> thisMap, Map<?, ?> otherMap, IdentityHashMap<Object, Object> thisUsedContainers) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Object o) Implements java. Compares this
java.util.Map and array instances. null is less than any
other non-null instance.
| |
| compareValuesDeep | back to summary |
|---|---|
private static int compareValuesDeep(Object thisValue, Object otherValue, IdentityHashMap<Object, Object> thisUsedContainers)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Two
| |
| getMetadata | back to summary |
|---|---|
| public Map Returns
| |
| getTimestamp | back to summary |
|---|---|
| public long getTimestamp() Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code of this
| |