Package org.biojava.nbio.structure
Class AugmentedResidueRange
java.lang.Object
org.biojava.nbio.structure.ResidueRange
org.biojava.nbio.structure.ResidueRangeAndLength
org.biojava.nbio.structure.AugmentedResidueRange
Created by douglas on 1/23/15.
-
Field Summary
Fields inherited from class org.biojava.nbio.structure.ResidueRange
CHAIN_REGEX, RANGE_REGEX
-
Constructor Summary
ConstructorDescriptionAugmentedResidueRange
(String chain, String start, String end, int length, AtomPositionMap map) AugmentedResidueRange
(String chain, ResidueNumber start, ResidueNumber end, int length, AtomPositionMap map) -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(ResidueNumber residueNumber) getResidue
(int positionInRange) Returns the ResidueNumber that is at positionpositionInRange
in this ResidueRange.iterator()
Returns a new Iterator over everyResidueNumber
in this ResidueRange.Methods inherited from class org.biojava.nbio.structure.ResidueRangeAndLength
calcLength, equals, getLength, hashCode, iterator, parse, parseMultiple, parseMultiple
Methods inherited from class org.biojava.nbio.structure.ResidueRange
contains, getChainId, getEnd, getResidue, getStart, multiIterator, multiIterator, parse, parseMultiple, parseMultiple, toString, toString, toStrings
-
Constructor Details
-
AugmentedResidueRange
public AugmentedResidueRange(String chain, ResidueNumber start, ResidueNumber end, int length, AtomPositionMap map) -
AugmentedResidueRange
public AugmentedResidueRange(String chain, String start, String end, int length, AtomPositionMap map)
-
-
Method Details
-
getResidue
Returns the ResidueNumber that is at positionpositionInRange
in this ResidueRange.- Returns:
- The ResidueNumber, or false if it does not exist or is not within this ResidueRange
-
contains
- Returns:
- True if and only if
residueNumber
is within this ResidueRange
-
iterator
Returns a new Iterator over everyResidueNumber
in this ResidueRange. Stores the contents ofmap
until the iterator is finished, so calling code should set the iterator tonull
if it did not finish.
-