Record Class HtmlAttribute
java.lang.Object
java.lang.Record
io.micronaut.views.fields.HtmlAttribute
- Record Components:
key- HTML Attribute Key. e.g. `checked`value- HTML attribute value. for example for `name="firstName"` `name` is the key and `firstName` is the value
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlAttribute(@NonNull String key, @Nullable String value) Creates an instance of aHtmlAttributerecord 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.@NonNull Stringkey()Returns the value of thekeyrecord component.toString()Returns a string representation of this record class.@Nullable Stringvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
HtmlAttribute
-
-
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). -
key
-
value
-