public class Rule extends java.lang.Object implements java.lang.Iterable<GeneIntervalElement>, TextOutput<Rule>
Constructor and Description |
---|
Rule(java.lang.String original) |
Rule(java.lang.String classification,
GeneIntervalElement[] pairs) |
Rule(java.lang.String classification,
java.util.List<GeneIntervalElement> pairs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getClassification()
Get the classification of this rule
|
java.lang.String |
getDefaultTextRepresentation()
Get the default textual representation of a gene-range pair
|
GeneIntervalElement[] |
getGeneIntervalPairs()
Gets gene-range pairs
|
java.lang.String |
getTextRepresentation()
Get the textual representation of a gene-range pair
|
java.lang.String |
getTextRepresentation(Beautifier<Rule> beautifier)
Get the textual representation of a gene-range pair
|
int |
hashCode() |
java.util.Iterator<GeneIntervalElement> |
iterator() |
void |
setClassification(java.lang.String classification)
Set a new classification for this rule
|
void |
setGeneIntervalPairs(GeneIntervalElement[] geneIntervalPairs)
Set new gene-interval pairs
|
void |
setGeneIntervalPairs(java.util.List<GeneIntervalElement> geneIntervalPairs)
Set new gene-interval pairs
|
java.lang.String |
toString() |
java.lang.String |
toString(Beautifier<Rule> beautifier)
Transforms this object into a string
|
public Rule(java.lang.String classification, GeneIntervalElement[] pairs)
public Rule(java.lang.String classification, java.util.List<GeneIntervalElement> pairs)
public Rule(java.lang.String original)
public java.lang.String getTextRepresentation()
public java.lang.String getDefaultTextRepresentation()
public java.lang.String getTextRepresentation(Beautifier<Rule> beautifier)
public java.lang.String getClassification()
public void setClassification(java.lang.String classification)
classification
- new classificationpublic GeneIntervalElement[] getGeneIntervalPairs()
public void setGeneIntervalPairs(GeneIntervalElement[] geneIntervalPairs)
geneIntervalPairs
- an array of pairspublic void setGeneIntervalPairs(java.util.List<GeneIntervalElement> geneIntervalPairs)
geneIntervalPairs
- a list of pairspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<GeneIntervalElement> iterator()
iterator
in interface java.lang.Iterable<GeneIntervalElement>
public java.lang.String toString(Beautifier<Rule> beautifier)
TextOutput
toString
in interface TextOutput<Rule>