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

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

public final class VascoOtpLetterOrder {
   private final String orderedBy;
   private final Date orderDate;

   @SuppressFBWarnings(justification = "generated code")
   public VascoOtpLetterOrder(String orderedBy, Date orderDate) {
      this.orderedBy = orderedBy;
      this.orderDate = orderDate;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   public Date getOrderDate() {
      return this.orderDate;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "VascoOtpLetterOrder(orderedBy=" + this.getOrderedBy() + ", orderDate=" + this.getOrderDate() + ")";
   }
}
