Record Class Results.Partition<V,E>
java.lang.Object
java.lang.Record
dmx.fun.Results.Partition<V,E>
- Type Parameters:
V- the value type of theOkelementsE- the error type of theErrelements- Record Components:
oks- the list of successful values; must not benullerrors- the list of error values; must not benull
- Enclosing class:
Results
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.oks()Returns the value of theoksrecord component.Converts this partition to the underlyingResult.Partition.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Partition
-
-
Method Details
-
toResultPartition
Converts this partition to the underlyingResult.Partition.- Returns:
- a
Result.Partitioncontaining the same elements as this partition'soksanderrorscollections
-
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). -
oks
-
errors
-