Record Class Tries.Partition<V>
java.lang.Object
java.lang.Record
dmx.fun.Tries.Partition<V>
- Type Parameters:
V- the value type of theSuccesselements- Record Components:
successes- the list of successful values; must not benullfailures- the list of failure causes; must not benull
- Enclosing class:
Tries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.failures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesuccessesrecord component.final StringtoString()Returns a string representation of this record class.Converts this partition to the underlyingTry.Partition.
-
Constructor Details
-
Partition
-
-
Method Details
-
toTryPartition
Converts this partition to the underlyingTry.Partition.- Returns:
- a
Try.Partitioncontaining the same elements as this partition'ssuccessesandfailurescollections
-
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). -
successes
-
failures
-