public boolean overlapsMildLocs(PBArg pbArg) { for (PBLoc cLoc : pb_locs) { for (PBLoc pLoc : pbArg.getLocs()) { if (cLoc.terminalId == pLoc.terminalId) { return true; } } } return false; }
/** @return true if this argument has overlap with <code>pbArg</code>. */ public boolean overlapsLocs(PBArg pbArg) { for (PBLoc cLoc : pb_locs) { for (PBLoc pLoc : pbArg.getLocs()) { if (cLoc.equals(pLoc)) { return true; } } } return false; }