package com.airlock.iam.oauth2.infrastructure.validation.availability;

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

public final class OpenIdConnectSessionManagementAvailability {
   private final boolean available;

   @SuppressFBWarnings(justification = "generated code")
   public OpenIdConnectSessionManagementAvailability(boolean available) {
      this.available = available;
   }

   @SuppressFBWarnings(justification = "generated code")
   public boolean isAvailable() {
      return this.available;
   }

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      return result * 59 + (this.available ? 79 : 97);
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OpenIdConnectSessionManagementAvailability(available=" + this.isAvailable() + ")";
   }
}
