Record Class FutureSnapshot.Failure<T>
java.lang.Object
java.lang.Record
dev.pfaff.altargui.util.FutureSnapshot.Failure<T>
- All Implemented Interfaces:
FutureSnapshot<T>
- Enclosing interface:
FutureSnapshot<T>
public static record FutureSnapshot.Failure<T>(Throwable throwable)
extends Record
implements FutureSnapshot<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.pfaff.altargui.util.FutureSnapshot
FutureSnapshot.Failure<T>, FutureSnapshot.InProgress<T>, FutureSnapshot.Success<T>
-
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.Returns the value of thethrowable
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Failure
Creates an instance of aFailure
record class.- Parameters:
throwable
- the value for thethrowable
record 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)
. -
throwable
Returns the value of thethrowable
record component.- Returns:
- the value of the
throwable
record component
-