Record Class AdminAccountChanges.DevicesOutcome

java.lang.Object
java.lang.Record
com.iizix.server.user.AdminAccountChanges.DevicesOutcome
Record Components:
refusal - Why nothing was changed, for the administrator; null when the change was made.
done - What was done; null when refused.
notice - What did not go as planned afterwards (the mail to the user), for the administrator; null when nothing is to report.
Enclosing class:
AdminAccountChanges

public static record AdminAccountChanges.DevicesOutcome(String refusal, AdminAccountChanges.Done done, String notice) extends Record
The outcome of a sign-out of every device or a reset of the sign-in methods.
Author:
Christopher Mindus
  • Constructor Details

    • DevicesOutcome

      public DevicesOutcome(String refusal, AdminAccountChanges.Done done, String notice)
      Creates an instance of a DevicesOutcome record class.
      Parameters:
      refusal - the value for the refusal record component
      done - the value for the done record component
      notice - the value for the notice record component
  • Method Details

    • isDone

      public boolean isDone()
      Checks if the change was made.
      Returns:
      true when it was made (a notice may still be set).
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • refusal

      public String refusal()
      Returns the value of the refusal record component.
      Returns:
      the value of the refusal record component
    • done

      public AdminAccountChanges.Done done()
      Returns the value of the done record component.
      Returns:
      the value of the done record component
    • notice

      public String notice()
      Returns the value of the notice record component.
      Returns:
      the value of the notice record component