Record Class InitializerDescription
java.lang.Object
java.lang.Record
tech.illuin.pipeline.observer.descriptor.model.InitializerDescription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorHandler
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of theinitializer
record component.metrics()
Returns the value of themetrics
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
InitializerDescription
public InitializerDescription(String id, Object initializer, Object errorHandler, Map<String, Metric> metrics) Creates an instance of aInitializerDescription
record class.- Parameters:
id
- the value for theid
record componentinitializer
- the value for theinitializer
record componenterrorHandler
- the value for theerrorHandler
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
-
initializer
Returns the value of theinitializer
record component.- Returns:
- the value of the
initializer
record component
-
errorHandler
Returns the value of theerrorHandler
record component.- Returns:
- the value of the
errorHandler
record component
-
metrics
Returns the value of themetrics
record component.- Returns:
- the value of the
metrics
record component
-