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.Warning
getExpiration
in interface AccountState.Warning
public int getLoginsRemaining()
AccountState.Warning
getLoginsRemaining
in interface AccountState.Warning
Copyright © 2016. All rights reserved.