Record Class Try.Success<Value>
java.lang.Object
java.lang.Record
codes.domix.fun.Try.Success<Value>
- Type Parameters:
Value- the type of the value being encapsulated- Record Components:
value- the successful result of the computation
- 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 TypeMethodDescriptionfinal 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.value()Returns the value of thevaluerecord component.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
-
Success
-
-
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). -
value
-