public class SmallAnnotation extends AbstractAnnotation
EMPTY_ANNOTATION
Constructor and Description |
---|
SmallAnnotation()
Return a new SmallAnnotation optimised for small sets of properties.
|
SmallAnnotation(Annotation ann)
Return a new SmallAnnotation that copies all values from another annoation.
|
SmallAnnotation(Map map)
Return a new SmallAnnotation that copies all values from a Map.
|
Modifier and Type | Method and Description |
---|---|
protected 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 fromNullPointerException
- if ann is nullpublic SmallAnnotation(Map map)
map
- the Map to copy values fromprotected final 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
Copyright © 2000–2019 BioJava. All rights reserved.