Annotation
public 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, toString
public 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()
AbstractAnnotation
LinkedHashMap
or similar so properties are iterated in the order
they were added.getProperties
in class AbstractAnnotation
protected final boolean propertiesAllocated()
AbstractAnnotation
propertiesAllocated
in class AbstractAnnotation