コード例 #1
0
  public boolean overlapsMildLocs(PBArg pbArg) {
    for (PBLoc cLoc : pb_locs) {
      for (PBLoc pLoc : pbArg.getLocs()) {
        if (cLoc.terminalId == pLoc.terminalId) {
          return true;
        }
      }
    }

    return false;
  }
コード例 #2
0
  /** @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;
  }