public class Attribute<T> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
key |
protected Map<String,String> |
metadata
Metadata allows the attribute to be extensible so that different services can read different properties without
the need for inheritance.
|
protected T |
value |
| Constructor and Description |
|---|
Attribute(String key,
T value) |
Attribute(String key,
T value,
Map<String,String> metadata) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getKey() |
Map<String,String> |
getMetadata()
Gets an immutable view of the current metadata
|
String |
getMetadataValue(String key)
Gets a value for the metadata key for the current attribute.
|
T |
getValue() |
int |
hashCode() |
Set<String> |
metadataKeys()
Gets all keys from the metadata
|
String |
toString() |
Copyright © 2018 Calrissian. All rights reserved.