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 @NotEmpty List<@Valid ? extends FormElement> fields, @NonNull List<@Valid Message> errors)
extends Record
Represents an HTML fieldset.
The Fieldset element
- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorsConstructorDescriptionFieldset(@NonNull @NotEmpty List<@Valid ? extends FormElement> fields, @NonNull List<@Valid Message> errors) Creates an instance of aFieldsetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.@NonNull @NotEmpty List<@Valid ? extends FormElement> fields()Returns the value of thefieldsrecord component.booleanfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fieldset
-
-
Method Details
-
hasErrors
public boolean hasErrors()- Returns:
- Whether there are any global validation errors
-
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). -
fields
-
errors
-