Package ch.rswk.meta.engine
Record Class MetaService.CachedMetaAction
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.MetaService.CachedMetaAction
- Enclosing class:
MetaService
public static record MetaService.CachedMetaAction(MetaAction action, @Nullable com.networknt.schema.JsonSchema paramSchema, @Nullable com.networknt.schema.JsonSchema resultSchema)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MetaAction
The field for theaction
record component.private final @Nullable com.networknt.schema.JsonSchema
The field for theparamSchema
record component.private final @Nullable com.networknt.schema.JsonSchema
The field for theresultSchema
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCachedMetaAction
(MetaAction action, @Nullable com.networknt.schema.JsonSchema paramSchema, @Nullable com.networknt.schema.JsonSchema resultSchema) Creates an instance of aCachedMetaAction
record class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable com.networknt.schema.JsonSchema
Returns the value of theparamSchema
record component.@Nullable com.networknt.schema.JsonSchema
Returns the value of theresultSchema
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
action
The field for theaction
record component. -
paramSchema
private final @Nullable com.networknt.schema.JsonSchema paramSchemaThe field for theparamSchema
record component. -
resultSchema
private final @Nullable com.networknt.schema.JsonSchema resultSchemaThe field for theresultSchema
record component.
-
-
Constructor Details
-
CachedMetaAction
public CachedMetaAction(MetaAction action, @Nullable com.networknt.schema.JsonSchema paramSchema, @Nullable com.networknt.schema.JsonSchema resultSchema) Creates an instance of aCachedMetaAction
record class.- Parameters:
action
- the value for theaction
record componentparamSchema
- the value for theparamSchema
record componentresultSchema
- the value for theresultSchema
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)
. -
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
paramSchema
public @Nullable com.networknt.schema.JsonSchema paramSchema()Returns the value of theparamSchema
record component.- Returns:
- the value of the
paramSchema
record component
-
resultSchema
public @Nullable com.networknt.schema.JsonSchema resultSchema()Returns the value of theresultSchema
record component.- Returns:
- the value of the
resultSchema
record component
-