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 Summary
ConstructorsConstructorDescriptionDevicesOutcome(String refusal, AdminAccountChanges.Done done, String notice) Creates an instance of aDevicesOutcomerecord class.Method Summary
Modifier and TypeMethodDescriptiondone()Returns the value of thedonerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisDone()Checks if the change was made.notice()Returns the value of thenoticerecord component.refusal()Returns the value of therefusalrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
DevicesOutcome
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
hashCode
equals
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 withObjects::equals(Object,Object).refusal
done
notice