Record Class InputSubmitFormElement
java.lang.Object
java.lang.Record
io.micronaut.views.fields.elements.InputSubmitFormElement
- Record Components:
value
- a string which is displayed as the button's label.
- All Implemented Interfaces:
InputFormElement
,FormElement
@Introspected(builder=@IntrospectionBuilder(builderClass=Builder.class))
public record InputSubmitFormElement(@NonNull Message value)
extends Record
implements InputFormElement
- Since:
- 4.1.0
- Author:
- Sergio del Amo
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionInputSubmitFormElement
(@NonNull Message value) Creates an instance of aInputSubmitFormElement
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull InputSubmitFormElement.Builder
builder()
final boolean
Indicates whether some other object is "equal to" this one.@NonNull InputType
getType()
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.@NonNull Message
value()
Returns the value of thevalue
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micronaut.views.fields.elements.InputFormElement
getTag
-
Constructor Details
-
InputSubmitFormElement
Creates an instance of aInputSubmitFormElement
record class.- Parameters:
value
- the value for thevalue
record component
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceInputFormElement
- Returns:
- Value of the type attribute of an input tag
-
builder
- Returns:
InputSubmitFormElement
builder.
-
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)
. -
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-