Record Class UiResult.Closed<R>
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.UiResult.Closed<R>
- Type Parameters:
R- answer type- Record Components:
reason- why it ended
- All Implemented Interfaces:
UiResult<R>
The intent ended without an answer.
-
Nested Class Summary
Nested classes/interfaces inherited from interface UiResult
UiResult.Closed<R>, UiResult.Completed<R> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CloseReasonThe field for thereasonrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.value()The value.Methods inherited from interface UiResult
isCompleted
-
Field Details
-
reason
The field for thereasonrecord component.
-
-
Constructor Details
-
Closed
Rejects a null reason.
-
-
Method Details
-
value
Description copied from interface:UiResultThe value. @throws IllegalStateException ifUiResult.Closed- Specified by:
valuein interfaceUiResult<R>- Throws:
IllegalStateException- because a closed intent has no answer
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
reason
-