@Immutable public final class Annotation extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Annotation |
fromDescription(String description)
Returns a new
Annotation with the given description. |
static Annotation |
fromDescriptionAndAttributes(String description,
Map<String,AttributeValue> attributes)
Returns a new
Annotation with the given description and set of attributes. |
Map<String,AttributeValue> |
getAttributes()
Return the attributes of the
Annotation. |
String |
getDescription()
Return the description of the
Annotation. |
int |
hashCode() |
String |
toString() |
public static Annotation fromDescription(String description)
Annotation with the given description.description - the text description of the Annotation.Annotation with the given description.NullPointerException - if description is null.public static Annotation fromDescriptionAndAttributes(String description, Map<String,AttributeValue> attributes)
Annotation with the given description and set of attributes.description - the text description of the Annotation.attributes - the attributes of the Annotation.Annotation with the given description and set of attributes.NullPointerException - if description or attributes are null.public String getDescription()
Annotation.Annotation.public Map<String,AttributeValue> getAttributes()
Annotation.Annotation.