Record Class AccumulatorResult<T>
java.lang.Object
java.lang.Record
com.scivicslab.pojoactor.core.accumulator.AccumulatorResult<T>
- Type Parameters:
T- the type of the result data- Record Components:
source- the source identifier (e.g., actor name)result- the result datatimestamp- when the result was added
A result entry in an accumulator.
This record represents a single result that has been added to an accumulator, including metadata about when and where it came from.
- Since:
- 2.8.0
- Author:
- devteam@scivics-lab.com
-
Constructor Summary
ConstructorsConstructorDescriptionAccumulatorResult(String source, T result, Instant timestamp) Creates an instance of aAccumulatorResultrecord 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.result()Returns the value of theresultrecord component.source()Returns the value of thesourcerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-