Package tech.illuin.pipeline.step.result
Record Class ResultDescriptor<R extends Result>
java.lang.Object
java.lang.Record
tech.illuin.pipeline.step.result.ResultDescriptor<R>
- All Implemented Interfaces:
Indexable
public record ResultDescriptor<R extends Result>(String uid, ComponentTag tag, Instant createdAt, R extends Result result)
extends Record
implements Indexable
- Author:
- Pierre Lecerf ([email protected])
-
Constructor Summary
ConstructorsConstructorDescriptionResultDescriptor(String uid, ComponentTag tag, Instant createdAt, R result) Creates an instance of aResultDescriptorrecord class.ResultDescriptor(String uid, ComponentTag tag, R result) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.final 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.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.
-
Constructor Details
-
ResultDescriptor
-
ResultDescriptor
Creates an instance of aResultDescriptorrecord class.- Parameters:
uid- the value for theuidrecord componenttag- the value for thetagrecord componentcreatedAt- the value for thecreatedAtrecord componentresult- the value for theresultrecord component
-
-
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). -
uid
Returns the value of theuidrecord component. -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-