Package org.biojava.nbio.structure
Class ResidueNumber
java.lang.Object
org.biojava.nbio.structure.ResidueNumber
- All Implemented Interfaces:
Serializable
,Comparable<ResidueNumber>
Everything that is needed to uniquely describe a residue position
- Author:
- Andreas Prlic
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ResidueNumber other) boolean
static ResidueNumber
fromString
(String pdb_code) Convert a string representation of a residue number to a residue number object.int
hashCode()
void
setChainId
(String chainId) void
setInsCode
(Character insCode) void
toPDB()
toString()
-
Constructor Details
-
ResidueNumber
public ResidueNumber() -
ResidueNumber
-
ResidueNumber
-
-
Method Details
-
getChainId
-
setChainId
-
getInsCode
-
setInsCode
-
getSeqNum
-
setSeqNum
-
equals
-
hashCode
public int hashCode() -
toString
-
toPDB
- Returns:
- The chain, number, and insertion code as a string, eg "B 74A" or "A 1 "
-
fromString
Convert a string representation of a residue number to a residue number object. The string representation can be a integer followed by a character.- Parameters:
pdb_code
-- Returns:
- a ResidueNumber object, or null if the input was null
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ResidueNumber>
-
printFull
-