Package io.micronaut.views.fields
Record Class Fieldset
java.lang.Object
java.lang.Record
io.micronaut.views.fields.Fieldset
- Record Components:
fields
- Fieldset fieldserrors
- Global Validation errors
@Introspected
public record Fieldset(@NonNull List<? extends FormElement> fields, @NonNull List<Message> errors)
extends Record
Represents an HTML fieldset.
The Fieldset element
- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionFieldset
(@NonNull List<? extends FormElement> fields, @NonNull List<Message> errors) Creates an instance of aFieldset
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.errors()
Returns the value of theerrors
record component.@NonNull List<? extends FormElement>
fields()
Returns the value of thefields
record component.boolean
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
hasErrors
public boolean hasErrors()- Returns:
- Whether there are any global validation errors
-
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)
. -
fields
Returns the value of thefields
record component.- Returns:
- the value of the
fields
record component
-
errors
Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-