public class AccountState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccountState.DefaultWarning
Default warning implementation.
|
static interface |
AccountState.Error
Contains error information for an account state.
|
static interface |
AccountState.Warning
Contains warning information for an account state.
|
Modifier and Type | Field and Description |
---|---|
private AccountState.Error[] |
accountErrors
account error.
|
private AccountState.Warning[] |
accountWarnings
account warning.
|
Constructor and Description |
---|
AccountState(AccountState.Error... errors)
Creates a new account state.
|
AccountState(AccountState.Warning... warnings)
Creates a new account state.
|
Modifier and Type | Method and Description |
---|---|
AccountState.Error |
getError()
Returns the first account state error or null if no errors exist.
|
AccountState.Error[] |
getErrors()
Returns the account state errors.
|
AccountState.Warning |
getWarning()
Returns the first account state warning or null if no warnings exist.
|
AccountState.Warning[] |
getWarnings()
Returns the account state warnings.
|
String |
toString() |
private final AccountState.Warning[] accountWarnings
private final AccountState.Error[] accountErrors
public AccountState(AccountState.Warning... warnings)
warnings
- associated with the accountpublic AccountState(AccountState.Error... errors)
errors
- associated with the accountpublic AccountState.Warning[] getWarnings()
public AccountState.Warning getWarning()
public AccountState.Error[] getErrors()
public AccountState.Error getError()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.