package com.airlock.iam.oauth2.domain.model.accountregistration;

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

public final class AccountRegistrationContextData {
   private final String contextDataName;
   private final Object contextDataValue;

   @SuppressFBWarnings(justification = "generated code")
   public AccountRegistrationContextData(String contextDataName, Object contextDataValue) {
      this.contextDataName = contextDataName;
      this.contextDataValue = contextDataValue;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public Object getContextDataValue() {
      return this.contextDataValue;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "AccountRegistrationContextData(contextDataName=" + this.getContextDataName() + ", contextDataValue=" + this.getContextDataValue() + ")";
   }
}
