Record Class PipelineDescription
java.lang.Object
java.lang.Record
tech.illuin.pipeline.observer.descriptor.model.PipelineDescription
public record PipelineDescription(String id, InitializerDescription init, List<StepDescription> steps, List<SinkDescription> sinks, Map<String,Metric> metrics)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPipelineDescription
(String id, InitializerDescription init, List<StepDescription> steps, List<SinkDescription> sinks, Map<String, Metric> metrics) Creates an instance of aPipelineDescription
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.init()
Returns the value of theinit
record component.metrics()
Returns the value of themetrics
record component.sinks()
Returns the value of thesinks
record component.steps()
Returns the value of thesteps
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PipelineDescription
public PipelineDescription(String id, InitializerDescription init, List<StepDescription> steps, List<SinkDescription> sinks, Map<String, Metric> metrics) Creates an instance of aPipelineDescription
record class.- Parameters:
id
- the value for theid
record componentinit
- the value for theinit
record componentsteps
- the value for thesteps
record componentsinks
- the value for thesinks
record componentmetrics
- the value for themetrics
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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
init
Returns the value of theinit
record component.- Returns:
- the value of the
init
record component
-
steps
Returns the value of thesteps
record component.- Returns:
- the value of the
steps
record component
-
sinks
Returns the value of thesinks
record component.- Returns:
- the value of the
sinks
record component
-
metrics
Returns the value of themetrics
record component.- Returns:
- the value of the
metrics
record component
-