public final class NotificationResult extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
indicatesSuccess
true if and only if the notification was successful.
|
String |
message
the error message in case the notification was not successful or
null, otherwise.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NotificationResult(boolean initSuccess,
String initMessage)
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static NotificationResult |
newFailure(String message)
returns a new NotificationResult instance indicating a failed
notification.
|
static NotificationResult |
newSuccess()
returns a new NotificationResult instance indicating a successful
notification.
|
public final boolean indicatesSuccess
public final String message
protected NotificationResult(boolean initSuccess,
String initMessage)
initSuccess - success flaginitMessage - message in case notification was not successfulpublic static NotificationResult newSuccess()
public static NotificationResult newFailure(String message)
message - the message indicating why the notification failedCopyright © 2016–2019. All rights reserved.