com.vaadin.signals.operations.
Record Class SignalOperation.Error<T>
Type Parameters:
T
- the inherited result type which is not used for errors
All Implemented Interfaces:
Enclosing class:
A failed signal operation result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.
final int
hashCode()
Returns a hash code value for this object.
reason()
Returns the value of the
reason
record component.boolean
Checks whether this instance represents successfully applied signal operation.
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Error
Creates an instance of a
Error
record class.Parameters:
reason
- the value for thereason
record component
-
-
Method Details
-
successful
public boolean successful()Description copied from interface:
SignalOperation.ResultOrError
Checks whether this instance represents successfully applied signal operation.
Specified by:
successful
in interfaceSignalOperation.ResultOrError<T>
Returns:
true
if the operation was successful,false
if there was an error -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with
Objects::equals(Object,Object)
. -
reason
Returns the value of the
reason
record component.Returns:
the value of the
reason
record component
-