public class Annotation extends java.lang.Object implements java.lang.Comparable<Annotation>
Constructor and Description |
---|
Annotation() |
Annotation(Annotation another) |
Annotation(java.lang.String type,
long start,
long end,
java.util.Map<java.lang.String,java.lang.String> features) |
Modifier and Type | Method and Description |
---|---|
Annotation |
addFeature(java.lang.String name,
java.lang.String val) |
void |
addFeatures(java.util.Map<java.lang.String,java.lang.String> features) |
int |
compareTo(Annotation target) |
boolean |
equals(java.lang.Object o) |
long |
getEnd() |
int |
getFeatureCount() |
java.util.Map<java.lang.String,java.lang.String> |
getFeatures() |
long |
getStart() |
java.lang.String |
getType() |
int |
hashCode() |
Annotation |
setEnd(long end) |
Annotation |
setStart(long start) |
Annotation |
setType(java.lang.String type) |
java.lang.String |
toString()
Returns a String representation of the Annotation
|
public Annotation()
public Annotation(Annotation another)
public Annotation(java.lang.String type, long start, long end, java.util.Map<java.lang.String,java.lang.String> features)
public int getFeatureCount()
public java.lang.String getType()
public Annotation setType(java.lang.String type)
public long getStart()
public Annotation setStart(long start)
public long getEnd()
public Annotation setEnd(long end)
public java.util.Map<java.lang.String,java.lang.String> getFeatures()
public void addFeatures(java.util.Map<java.lang.String,java.lang.String> features)
public Annotation addFeature(java.lang.String name, java.lang.String val)
public int compareTo(Annotation target)
compareTo
in interface java.lang.Comparable<Annotation>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object