public class ResidueNumber extends Object implements Serializable, Comparable<ResidueNumber>
Constructor and Description |
---|
ResidueNumber() |
ResidueNumber(ResidueNumber o) |
ResidueNumber(String chainName,
Integer residueNumber,
Character insCode) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ResidueNumber other)
Compare residue numbers by chain, sequence number, and insertion code
|
int |
compareToPositional(ResidueNumber other)
Compare residue numbers by sequence number and insertion code,
ignoring the chain
|
boolean |
equals(Object obj) |
boolean |
equalsPositional(Object obj)
Check if the seqNum and insertion code are equivalent,
ignoring the chain
|
static ResidueNumber |
fromString(String pdb_code)
Convert a string representation of a residue number to a residue number object.
|
String |
getChainName() |
Character |
getInsCode() |
Integer |
getSeqNum() |
int |
hashCode() |
String |
printFull() |
void |
setChainName(String chainName) |
void |
setInsCode(Character insCode) |
void |
setSeqNum(Integer seqNum) |
String |
toPDB() |
String |
toString() |
public ResidueNumber()
public ResidueNumber(ResidueNumber o)
public ResidueNumber(String chainName, Integer residueNumber, Character insCode)
public String getChainName()
public void setChainName(String chainName)
public Character getInsCode()
public void setInsCode(Character insCode)
public boolean equalsPositional(Object obj)
obj
- public String toString()
toString
in class Object
Object.toString()
public String toPDB()
public static ResidueNumber fromString(String pdb_code)
pdb_code
- public int compareTo(ResidueNumber other)
compareTo
in interface Comparable<ResidueNumber>
public int compareToPositional(ResidueNumber other)
other
- Copyright © 2000–2018 BioJava. All rights reserved.