public class GeneIntervalElement extends java.lang.Object implements java.lang.Comparable<GeneIntervalElement>, TextOutput<GeneIntervalElement>
Constructor and Description |
---|
GeneIntervalElement(java.lang.String original)
Make a new gene-range pair from its text representation
|
GeneIntervalElement(java.lang.String name,
double min,
double max)
Make a new gene-range pair
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GeneIntervalElement p)
Compare two gene-range pairs
|
boolean |
equals(java.lang.Object o)
Checks if two gene-range pairs are equal
|
java.lang.String |
getDefaultTextRepresentation()
Get the default beautified representation of a gene-range pair
|
double |
getMax()
Get the max value in the interval
|
double |
getMin()
Get the min value in the interval
|
java.lang.String |
getName()
Get the name of a gene
|
java.lang.String |
getTextRepresentation()
Get the textual representation of a gene-range pair
|
java.lang.String |
getTextRepresentation(Beautifier<GeneIntervalElement> beautifier)
Get the textual representation of a gene-range pair
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toString(Beautifier<GeneIntervalElement> beautifier)
Transforms this object into a string
|
public GeneIntervalElement(java.lang.String name, double min, double max)
name
- the gene namemin
- the minimum value in the intervalmax
- the maximum value in the intervalpublic GeneIntervalElement(java.lang.String original)
original
- the text representation of the gene-range pairpublic java.lang.String getTextRepresentation()
public java.lang.String getDefaultTextRepresentation()
public java.lang.String getTextRepresentation(Beautifier<GeneIntervalElement> beautifier)
public java.lang.String getName()
public double getMin()
public double getMax()
public int compareTo(GeneIntervalElement p)
compareTo
in interface java.lang.Comparable<GeneIntervalElement>
p
- the second pairpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the second pairpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(Beautifier<GeneIntervalElement> beautifier)
TextOutput
toString
in interface TextOutput<GeneIntervalElement>