Java com.vaadin.data Result fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.data Result fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.data Result.

The text is from its open source code.

Method

Resulterror(String message)
Returns a failure result wrapping the given error message.
OptionalgetMessage()
Returns an Optional of the result message, or an empty Optional if none.
voidifOk(SerializableConsumer consumer)
Applies the consumer if result is not an error.
booleanisError()
Checks if the result denotes an error.
Resultok(R value)
Returns a successful result wrapping the given value.