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 aResultDescriptor
record class.ResultDescriptor
(String uid, ComponentTag tag, R result) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAt
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.result()
Returns the value of theresult
record component.tag()
Returns the value of thetag
record component.final String
toString()
Returns a string representation of this record class.uid()
Returns the value of theuid
record component.
-
Constructor Details
-
ResultDescriptor
-
ResultDescriptor
Creates an instance of aResultDescriptor
record class.- Parameters:
uid
- the value for theuid
record componenttag
- the value for thetag
record componentcreatedAt
- the value for thecreatedAt
record componentresult
- the value for theresult
record 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 theuid
record component. -
tag
Returns the value of thetag
record component.- Returns:
- the value of the
tag
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
result
Returns the value of theresult
record component.- Returns:
- the value of the
result
record component
-