Package com.vaadin.hilla.generator.model
Record Class ConstraintModel
java.lang.Object
java.lang.Record
com.vaadin.hilla.generator.model.ConstraintModel
- Record Components:
name- the simple name of the annotation, which is the name the form library knows the validator byattributes- what the annotation says, by the name of the attribute, with the ones it says nothing about left out; the order is the one of the names, so that the same class is always written the same way
What a value has to satisfy, as one of the annotations of the validation API
says it, which a form model binds as a validator of the property holding the
value.
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintModel(String name, Map<String, Object> attributes) Creates an instance of aConstraintModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static ConstraintModelfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConstraintModel
Creates an instance of aConstraintModelrecord class.- Parameters:
name- the value for thenamerecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
of
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-