public static class AccountState.DefaultWarning extends Object implements AccountState.Warning
| Constructor and Description |
|---|
DefaultWarning(Calendar exp,
int remaining)
Creates a new warning.
|
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getExpiration()
Returns the expiration.
|
int |
getLoginsRemaining()
Returns the number of logins remaining until the account locks.
|
String |
toString() |
public DefaultWarning(Calendar exp, int remaining)
exp - date of expirationremaining - number of loginspublic Calendar getExpiration()
AccountState.WarninggetExpiration in interface AccountState.Warningpublic int getLoginsRemaining()
AccountState.WarninggetLoginsRemaining in interface AccountState.WarningCopyright © 2023. All rights reserved.