java.lang.Object
java.lang.Record
org.praxislive.code.CodeChildFactoryService.Task
- Record Components:
componentType- the custom component typebaseDelegate- the base (superclass) of the custom typecodeTemplate- code template of the custom type (may be empty)logLevel- log level
- Enclosing class:
CodeChildFactoryService
public static record CodeChildFactoryService.Task(ComponentType componentType, Class<? extends CodeDelegate> baseDelegate, String codeTemplate, LogLevel logLevel)
extends Record
Task passed in by reference to the service.
-
Constructor Summary
ConstructorsConstructorDescriptionTask(ComponentType componentType, Class<? extends CodeDelegate> baseDelegate, String codeTemplate, LogLevel logLevel) Creates an instance of aTaskrecord class.Task(ComponentType componentType, Class<? extends CodeDelegate> baseDelegate, LogLevel logLevel) -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends CodeDelegate> Returns the value of thebaseDelegaterecord component.Returns the value of thecodeTemplaterecord 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, String codeTemplate, LogLevel logLevel) Creates an instance of aTaskrecord class.- Parameters:
componentType- the value for thecomponentTyperecord componentbaseDelegate- the value for thebaseDelegaterecord componentcodeTemplate- the value for thecodeTemplaterecord componentlogLevel- the value for thelogLevelrecord component
-
Task
public Task(ComponentType componentType, Class<? extends CodeDelegate> baseDelegate, LogLevel logLevel)
-
-
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
-
codeTemplate
Returns the value of thecodeTemplaterecord component.- Returns:
- the value of the
codeTemplaterecord component
-
logLevel
Returns the value of thelogLevelrecord component.- Returns:
- the value of the
logLevelrecord component
-