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

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

public final class MatrixCardOrder {
   private final Date date;
   private final String by;

   @SuppressFBWarnings(justification = "generated code")
   public MatrixCardOrder(Date date, String by) {
      this.date = date;
      this.by = by;
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "MatrixCardOrder(date=" + this.getDate() + ", by=" + this.getBy() + ")";
   }
}
