Record Class AdminAccountChanges.HoldOutcome
java.lang.Object
java.lang.Record
com.iizix.server.user.AdminAccountChanges.HoldOutcome
- Record Components:
refusal- Why nothing was changed, for the administrator; null when the failures were cleared.held- true when the account was held when the administrator acted (the hold is ended now), false when it was not at the limit (its failures are cleared all the same).failures- The failed sign-ins cleared.
- Enclosing class:
AdminAccountChanges
public static record AdminAccountChanges.HoldOutcome(String refusal, boolean held, int failures) extends Record
The outcome of
AdminAccountChanges.endHold(IAuthenticatedUser, BasicUserInfo).- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionHoldOutcome(String refusal, boolean held, int failures) Creates an instance of aHoldOutcomerecord class.Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.booleanheld()Returns the value of theheldrecord component.booleanisDone()Checks if the failures were cleared.refusal()Returns the value of therefusalrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
HoldOutcome
Method Details
isDone
public boolean isDone()Checks if the failures were cleared.- Returns:
- true when they were.
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.refusal
held
failures