package com.airlock.iam.common.api.domain.model.secretquestions;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

public final class SecretQuestionsAnswer {
   private final String answer;

   @SuppressFBWarnings(justification = "generated code")
   public SecretQuestionsAnswer(String answer) {
      this.answer = answer;
   }

   @SuppressFBWarnings(justification = "generated code")
   public String getAnswer() {
      return this.answer;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof SecretQuestionsAnswer other)) {
         return false;
      } else {
         Object this$answer = this.answer;
         Object other$answer = other.answer;
         return this$answer == null ? other$answer == null : this$answer.equals(other$answer);
      }
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $answer = this.answer;
      return result * 59 + ($answer == null ? 43 : $answer.hashCode());
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "SecretQuestionsAnswer(answer=" + this.getAnswer() + ")";
   }
}
