Annotationpublic class SmallAnnotation extends AbstractAnnotation
EMPTY_ANNOTATION| Constructor | Description |
|---|---|
SmallAnnotation() |
Return a new SmallAnnotation optimised for small sets of properties.
|
SmallAnnotation(java.util.Map map) |
Return a new SmallAnnotation that copies all values from a Map.
|
SmallAnnotation(Annotation ann) |
Return a new SmallAnnotation that copies all values from another annoation.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.Map |
getProperties() |
Implement this to return the Map delegate.
|
protected boolean |
propertiesAllocated() |
A convenience method to see if we have allocated the properties
Map.
|
asMap, containsProperty, equals, getProperty, hashCode, keys, removeProperty, setProperty, toStringpublic SmallAnnotation()
public SmallAnnotation(Annotation ann)
ann - the Annoation to copy all values fromjava.lang.NullPointerException - if ann is nullpublic SmallAnnotation(java.util.Map map)
map - the Map to copy values fromprotected final java.util.Map getProperties()
AbstractAnnotationLinkedHashMap or similar so properties are iterated in the order
they were added.getProperties in class AbstractAnnotationprotected final boolean propertiesAllocated()
AbstractAnnotationpropertiesAllocated in class AbstractAnnotation