java.lang.Object
java.lang.Record
org.praxislive.code.CodeChildFactoryService.Task
- Enclosing class:
CodeChildFactoryService
public static record CodeChildFactoryService.Task(ComponentType componentType, Class<? extends CodeDelegate> baseDelegate, LogLevel logLevel)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTask(ComponentType componentType, Class<? extends CodeDelegate> baseDelegate, LogLevel logLevel) Creates an instance of aTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends CodeDelegate> Returns the value of thebaseDelegaterecord component.Returns the value of thecomponentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logLevel()Returns the value of thelogLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Task
public Task(ComponentType componentType, Class<? extends CodeDelegate> baseDelegate, LogLevel logLevel) Creates an instance of aTaskrecord class.- Parameters:
componentType- the value for thecomponentTyperecord componentbaseDelegate- the value for thebaseDelegaterecord componentlogLevel- the value for thelogLevelrecord 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). -
componentType
Returns the value of thecomponentTyperecord component.- Returns:
- the value of the
componentTyperecord component
-
baseDelegate
Returns the value of thebaseDelegaterecord component.- Returns:
- the value of the
baseDelegaterecord component
-
logLevel
Returns the value of thelogLevelrecord component.- Returns:
- the value of the
logLevelrecord component
-