Example usage for Java com.vaadin.data Result fields, constructors, methods, implement or subclass
The text is from its open source code.
Result | error(String message) Returns a failure result wrapping the given error message. |
Optional | getMessage() Returns an Optional of the result message, or an empty Optional if none. |
void | ifOk(SerializableConsumer Applies the consumer if result is not an error. |
boolean | isError() Checks if the result denotes an error. |
Result | ok(R value) Returns a successful result wrapping the given value. |