Ejemplo n.º 1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof AuthorizationsHolder)) {
      return false;
    }

    AuthorizationsHolder that = (AuthorizationsHolder) o;

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

    return true;
  }
Ejemplo n.º 2
0
 @Override
 public int hashCode() {
   int result = authorizations != null ? authorizations.hashCode() : 0;
   result = 31 * result + (visibilityEvaluator != null ? visibilityEvaluator.hashCode() : 0);
   return result;
 }