package com.airlock.iam.factor.domain.model.airlock2fa;

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

public final class Airlock2FAAppDeviceVersion {
   private final String version;

   public static Airlock2FAAppDeviceVersion appDeviceVersion(String version) {
      return new Airlock2FAAppDeviceVersion(version);
   }

   @Override
   public String toString() {
      return this.version;
   }

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   private Airlock2FAAppDeviceVersion(String version) {
      this.version = version;
   }
}
