Record Class TypedIdGenerationRequest
java.lang.Object
java.lang.Record
org.chenile.utils.entity.service.TypedIdGenerationRequest
public record TypedIdGenerationRequest(String prefix, Class<?> entityType, ContextContainer contextContainer)
extends Record
Context supplied to a typed application ID generator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContextContainerThe field for thecontextContainerrecord component.private final Class<?> The field for theentityTyperecord component.private final StringThe field for theprefixrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTypedIdGenerationRequest(String prefix, Class<?> entityType, ContextContainer contextContainer) Creates an instance of aTypedIdGenerationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextContainerrecord component.Class<?> Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.prefix()Returns the value of theprefixrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
prefix
The field for theprefixrecord component. -
entityType
The field for theentityTyperecord component. -
contextContainer
The field for thecontextContainerrecord component.
-
-
Constructor Details
-
TypedIdGenerationRequest
public TypedIdGenerationRequest(String prefix, Class<?> entityType, ContextContainer contextContainer) Creates an instance of aTypedIdGenerationRequestrecord class.- Parameters:
prefix- the value for theprefixrecord componententityType- the value for theentityTyperecord componentcontextContainer- the value for thecontextContainerrecord 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). -
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
contextContainer
Returns the value of thecontextContainerrecord component.- Returns:
- the value of the
contextContainerrecord component
-
CHENILE