Record Class JobDefinitionKey<T extends JobPayload>
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.core.nonentities.job.JobDefinitionKey<T>
- Type Parameters:
T- payload type- Record Components:
jobType- public job typepayloadType- accepted payload type
public record JobDefinitionKey<T extends JobPayload>(JobType jobType, Class<T extends JobPayload> payloadType)
extends Record
Typed reference to a registered job definition.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionJobDefinitionKey(JobType jobType, Class<T> payloadType) Creates an instance of aJobDefinitionKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jobType()Returns the value of thejobTyperecord component.Returns the value of thepayloadTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobDefinitionKey
Creates an instance of aJobDefinitionKeyrecord class.- Parameters:
jobType- the value for thejobTyperecord componentpayloadType- the value for thepayloadTyperecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
jobType
-
payloadType
Returns the value of thepayloadTyperecord component.- Returns:
- the value of the
payloadTyperecord component
-