// diff < 5 then mark as valid and update termination Atom
if (chainTerMap.containsKey(curAtomChId))
{
+ if (curAtom.getResno() < chainTerMap.get(curAtomChId).getResno())
+ {
+ return false;
+ }
if ((curAtom.getResno() - chainTerMap.get(curAtomChId).getResno()) < 5)
{
chainTerMap.put(curAtomChId, curAtom);
// atom with previously terminated chain encountered
else if (chainTerMap.containsKey(curAtomChId))
{
+ if (curAtom.getResno() < chainTerMap.get(curAtomChId).getResno())
+ {
+ return false;
+ }
if ((curAtom.getResno() - chainTerMap.get(curAtomChId).getResno()) < 5)
{
chainTerMap.put(curAtomChId, curAtom);