java.lang.Object
java.lang.Record
io.smallrye.mutiny.groups.Gatherer.Extraction<ACC,O>
- Type Parameters:
ACC- the type of the accumulatorO- the type of the item to emit- Record Components:
nextAccumulator- the next accumulatornextItem- the next item to emit
An extraction result containing the next accumulator and the next item to emit.
-
Constructor Summary
ConstructorsConstructorDescriptionExtraction(ACC nextAccumulator, O nextItem) Creates an instance of aExtractionrecord class. -
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.Returns the value of thenextAccumulatorrecord component.nextItem()Returns the value of thenextItemrecord component.static <ACC,O> Gatherer.Extraction <ACC, O> of(ACC nextAccumulator, O nextItem) Creates a newGatherer.Extractioninstance.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Extraction
Creates an instance of aExtractionrecord class.- Parameters:
nextAccumulator- the value for thenextAccumulatorrecord componentnextItem- the value for thenextItemrecord component
-
-
Method Details
-
of
Creates a newGatherer.Extractioninstance.- Type Parameters:
ACC- the type of the accumulatorO- the type of the item to emit- Parameters:
nextAccumulator- the next accumulatornextItem- the next item to emit- Returns:
- a new
Gatherer.Extractioninstance
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
nextAccumulator
Returns the value of thenextAccumulatorrecord component.- Returns:
- the value of the
nextAccumulatorrecord component
-
nextItem
Returns the value of thenextItemrecord component.- Returns:
- the value of the
nextItemrecord component
-