public boolean equals()

in myriad-scheduler/src/main/java/org/apache/myriad/scheduler/constraints/LikeConstraint.java [88:106]


  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof LikeConstraint)) {
      return false;
    }

    LikeConstraint that = (LikeConstraint) o;

    if (lhs != null ? !lhs.equals(that.lhs) : that.lhs != null) {
      return false;
    }
    if (pattern != null ? !pattern.pattern().equals(that.pattern.pattern()) : that.pattern != null) {
      return false;
    }

    return true;
  }