public class AccountLockOrUnlockedDetails
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected AccountState |
newValue |
protected AccountState |
previousValue |
| Constructor and Description |
|---|
AccountLockOrUnlockedDetails(AccountState previousValue,
AccountState newValue)
Unlocked/locked account after failed sign in attempts.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
AccountState |
getNewValue()
The new account status.
|
AccountState |
getPreviousValue()
The previous account status.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final AccountState previousValue
protected final AccountState newValue
public AccountLockOrUnlockedDetails(AccountState previousValue, AccountState newValue)
previousValue - The previous account status. Must not be null.newValue - The new account status. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public AccountState getPreviousValue()
null.public AccountState getNewValue()
null.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.