public class Annotation extends java.lang.Object implements java.lang.Comparable<Annotation>
PipelineField
Modifier and Type | Class and Description |
---|---|
static class |
Annotation.AnnotationBuilder
Builder to build
Annotation . |
Constructor and Description |
---|
Annotation() |
Annotation(Annotation another) |
Annotation(java.lang.String type,
long start,
long end) |
Annotation(java.lang.String type,
long start,
long end,
java.util.Map<java.lang.String,java.lang.String> features) |
Annotation(java.lang.String type,
long start,
long end,
java.util.Map<java.lang.String,java.lang.String> features,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
Annotation |
addFeature(java.lang.String name,
java.lang.String val)
Deprecated.
|
void |
addFeatures(java.util.Map<java.lang.String,java.lang.String> features)
Deprecated.
|
int |
compareTo(Annotation target) |
boolean |
equals(java.lang.Object o) |
<any> |
getCharRange() |
long |
getEnd() |
int |
getFeatureCount()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getFeatures()
Deprecated.
|
java.lang.String |
getLabel() |
long |
getStart() |
java.lang.String |
getType() |
int |
hashCode() |
static Annotation.AnnotationBuilder |
newAnnotation() |
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, java.lang.String label)
public Annotation(java.lang.String type, long start, long end)
public Annotation(java.lang.String type, long start, long end, java.util.Map<java.lang.String,java.lang.String> features)
@Deprecated 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)
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getFeatures()
@Deprecated public void addFeatures(java.util.Map<java.lang.String,java.lang.String> features)
@Deprecated public Annotation addFeature(java.lang.String name, java.lang.String val)
public java.lang.String getLabel()
public <any> getCharRange()
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
public static Annotation.AnnotationBuilder newAnnotation()