コード例 #1
0
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;

    NivreAddressFunction other = (NivreAddressFunction) obj;
    if (index != other.index) return false;
    if (parsingAlgorithm == null) {
      if (other.parsingAlgorithm != null) return false;
    } else if (!parsingAlgorithm.equals(other.parsingAlgorithm)) return false;
    if (subFunction == null) {
      if (other.subFunction != null) return false;
    } else if (!subFunction.equals(other.subFunction)) return false;
    return true;
  }
コード例 #2
0
 public void update() throws MaltChainedException {
   update((NivreConfig) parsingAlgorithm.getCurrentParserConfiguration());
 }
コード例 #3
0
 public CovingtonFactory(Algorithm algorithm) {
   setAlgorithm(algorithm);
   setManager(algorithm.getManager());
 }