public class SequencePosition
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
SequencePosition()
Constructs a new SequencePosition object
|
SequencePosition(int index,
ResidueType residueType)
Constructs a new SequencePosition object of given index and residue type
|
SequencePosition(int index,
ResidueType residueType,
java.lang.String annotation)
Constructs a new SequencePosition object of given index, residue type and annotation
|
SequencePosition(int index,
java.lang.String annotation)
Constructs a new SequencePosition object of given index and annotation
|
SequencePosition(ResidueType residueType,
java.lang.String annotation)
Constructs a new SequencePosition object of residue type and annotation
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns an identical SequencePosition object
|
boolean |
equals(java.lang.Object other)
Returns true if the two sequence positions are identical
|
java.lang.String |
getAnnotation()
Returns the annotation of sequence position
|
int |
getIndex()
Returns the index of sequence position
|
ResidueType |
getResidueType()
Returns the residue type of sequence position
|
int |
hashCode()
Returns hash code
|
void |
setAnnotation(java.lang.String annotation)
Sets the annotation of sequence position
|
void |
setIndex(int index)
Sets the index of sequence position
|
void |
setResidueType(ResidueType residueType)
Sets the residue type of sequence position
|
java.lang.String |
toString()
Returns the String representation of sequence position
|
public SequencePosition()
public SequencePosition(int index,
ResidueType residueType)
index - indexresidueType - residue typepublic SequencePosition(int index,
java.lang.String annotation)
index - indexannotation - annotationpublic SequencePosition(ResidueType residueType, java.lang.String annotation)
residueType - residue typeannotation - annotationpublic SequencePosition(int index,
ResidueType residueType,
java.lang.String annotation)
index - indexresidueType - residue typeannotation - annotationpublic int getIndex()
public void setIndex(int index)
index - index of sequence positionpublic java.lang.String getAnnotation()
public void setAnnotation(java.lang.String annotation)
annotation - annotation of sequence positionpublic ResidueType getResidueType()
public void setResidueType(ResidueType residueType)
residueType - residue type of sequence positionpublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the other sequence positionpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object