Record Class InputHiddenFormElement
java.lang.Object
java.lang.Record
io.micronaut.views.fields.elements.InputHiddenFormElement
- Record Components:
name- Name of the form control. Submitted with the form as part of a name/value pairvalue- A string representing the value of the hidden field.
- All Implemented Interfaces:
InputFormElement,FormElement
@Introspected(builder=@IntrospectionBuilder(builderClass=Builder.class))
public record InputHiddenFormElement(@NonNull String name, @NonNull String value)
extends Record
implements InputFormElement
- Since:
- 4.1.0
- Author:
- Sergio del Amo
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInputHiddenFormElement(@NonNull String name, @NonNull String value) Creates an instance of aInputHiddenFormElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull InputHiddenFormElement.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.@NonNull InputTypegetType()final inthashCode()Returns a hash code value for this object.@NonNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@NonNull Stringvalue()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.views.fields.elements.InputFormElement
getTag
-
Constructor Details
-
Method Details
-
getType
- Specified by:
getTypein interfaceInputFormElement- Returns:
- Value of the type attribute of an input tag
-
builder
- Returns:
InputHiddenFormElementbuilder.
-
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
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-