package com.airlock.iam.admin.domain.model.token.matrixcard;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Date;
import java.util.Optional;

public final class MatrixCardChallenges {
   private final int count;
   private final Optional<Date> since;

   @SuppressFBWarnings(justification = "generated code")
   public MatrixCardChallenges(int count, Optional<Date> since) {
      this.count = count;
      this.since = since;
   }

   @SuppressFBWarnings(justification = "generated code")
   public int getCount() {
      return this.count;
   }

   @SuppressFBWarnings(justification = "generated code")
   public Optional<Date> getSince() {
      return this.since;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof MatrixCardChallenges other)) {
         return false;
      } else {
         if (this.count != other.count) {
            return false;
         }

         Object this$since = this.since;
         Object other$since = other.since;
         return this$since == null ? other$since == null : this$since.equals(other$since);
      }
   }

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "MatrixCardChallenges(count=" + this.getCount() + ", since=" + this.getSince() + ")";
   }
}
