Record Class StoreAnswer.Unknown
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.StoreAnswer.Unknown
- All Implemented Interfaces:
StoreAnswer
- Enclosing interface:
StoreAnswer
public static record StoreAnswer.Unknown(@Nullable Throwable cause)
extends Record
implements StoreAnswer
Not known whether it was stored (error, timeout, stall).
-
Nested Class Summary
Nested classes/interfaces inherited from interface StoreAnswer
StoreAnswer.Refused, StoreAnswer.Unknown, StoreAnswer.Written -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Throwablecause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
cause
The field for thecauserecord component.
-
-
Constructor Details
-
Unknown
Creates an instance of aUnknownrecord class.- Parameters:
cause- the value for thecauserecord component
-
-
Method Details
-
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). -
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-