Package io.vertigo.datamodel.smarttype
Record Class ConstraintConfig
java.lang.Object
java.lang.Record
io.vertigo.datamodel.smarttype.ConstraintConfig
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintConfig(Class<? extends Constraint> constraintClass, String arg, String msg, String resourceMsg) Creates an instance of aConstraintConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarg()Returns the value of theargrecord component.Class<? extends Constraint> Returns the value of theconstraintClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.msg()Returns the value of themsgrecord component.Returns the value of theresourceMsgrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConstraintConfig
public ConstraintConfig(Class<? extends Constraint> constraintClass, String arg, String msg, String resourceMsg) Creates an instance of aConstraintConfigrecord class.- Parameters:
constraintClass- the value for theconstraintClassrecord componentarg- the value for theargrecord componentmsg- the value for themsgrecord componentresourceMsg- the value for theresourceMsgrecord 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). -
constraintClass
Returns the value of theconstraintClassrecord component.- Returns:
- the value of the
constraintClassrecord component
-
arg
Returns the value of theargrecord component.- Returns:
- the value of the
argrecord component
-
msg
Returns the value of themsgrecord component.- Returns:
- the value of the
msgrecord component
-
resourceMsg
Returns the value of theresourceMsgrecord component.- Returns:
- the value of the
resourceMsgrecord component
-