Record Class Try.Failure<Value>
java.lang.Object
java.lang.Record
codes.domix.fun.Try.Failure<Value>
- Type Parameters:
Value- the type of the value that would have been produced if the computation had succeeded- Record Components:
cause- the exception that caused the failure; must not be null
- All Implemented Interfaces:
Try<Value>
-
Nested Class Summary
Nested classes/interfaces inherited from interface codes.domix.fun.Try
Try.CheckedRunnable, Try.CheckedSupplier<T>, Try.Failure<Value>, Try.Success<Value> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncause()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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface codes.domix.fun.Try
filter, filter, filter, flatMap, fold, get, getCause, getOrElse, getOrElseGet, getOrNull, getOrThrow, getOrThrow, isFailure, isSuccess, map, mapFailure, onFailure, onSuccess, recover, recoverWith, stream, toOption, toResult, toResult
-
Constructor Details
-
Failure
Compact canonical constructor — validates thatcauseis non-null.- Throws:
NullPointerException- ifcauseisnull
-
-
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
-