public interface ServiceResult<T>
ValidationResult otherwise.| Modifier and Type | Method and Description |
|---|---|
List<String> |
getErrorMessages()
Returns a list with error messages if the result is not valid.
|
T |
getResult()
Returns the value that was returned by the service, or null.
|
ValidationResult |
getValidationResult()
Returns the
ValidationResult instance if the result is not valid. |
boolean |
isValid()
Returns true if there are no errors, false otherwise.
|
T getResult()
boolean isValid()
ValidationResult getValidationResult()
ValidationResult instance if the result is not valid.ValidationResult instance if the result is not valid.Copyright © 2020. All rights reserved.