Record Class AlphabeticSortingFormContribution
java.lang.Object
java.lang.Record
ch.tocco.nice2.model.form.api.form2.interceptors.AlphabeticSortingFormContribution
-
Constructor Summary
ConstructorsConstructorDescriptionAlphabeticSortingFormContribution
(@Nullable String baseName, @Nullable FormScope formScope, boolean includeFallbacks, Set<String> containersToSort) Creates an instance of aAlphabeticSortingFormContribution
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
baseName()
Returns the value of thebaseName
record component.Returns the value of thecontainersToSort
record component.final boolean
Indicates whether some other object is "equal to" this one.forAllForms
(String... containersToSort) forFormWithFallbacks
(String baseName, FormScope formScope, String... containersToSort) @Nullable FormScope
Returns the value of theformScope
record component.forSpecificForm
(String baseName, FormScope formScope, String... containersToSort) final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theincludeFallbacks
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AlphabeticSortingFormContribution
public AlphabeticSortingFormContribution(@Nullable @Nullable String baseName, @Nullable @Nullable FormScope formScope, boolean includeFallbacks, Set<String> containersToSort) Creates an instance of aAlphabeticSortingFormContribution
record class.- Parameters:
baseName
- the value for thebaseName
record componentformScope
- the value for theformScope
record componentincludeFallbacks
- the value for theincludeFallbacks
record componentcontainersToSort
- the value for thecontainersToSort
record component
-
-
Method Details
-
forAllForms
-
forSpecificForm
public static AlphabeticSortingFormContribution forSpecificForm(String baseName, FormScope formScope, String... containersToSort) -
forFormWithFallbacks
public static AlphabeticSortingFormContribution forFormWithFallbacks(String baseName, FormScope formScope, String... containersToSort) -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
baseName
Returns the value of thebaseName
record component.- Returns:
- the value of the
baseName
record component
-
formScope
Returns the value of theformScope
record component.- Returns:
- the value of the
formScope
record component
-
includeFallbacks
public boolean includeFallbacks()Returns the value of theincludeFallbacks
record component.- Returns:
- the value of the
includeFallbacks
record component
-
containersToSort
Returns the value of thecontainersToSort
record component.- Returns:
- the value of the
containersToSort
record component
-