Record Class AlphabeticSortingFormContribution

java.lang.Object
java.lang.Record
ch.tocco.nice2.model.form.api.form2.interceptors.AlphabeticSortingFormContribution

public record AlphabeticSortingFormContribution(@Nullable String baseName, @Nullable FormScope formScope, boolean includeFallbacks, Set<String> containersToSort) extends Record
  • Constructor Details

    • AlphabeticSortingFormContribution

      public AlphabeticSortingFormContribution(@Nullable @Nullable String baseName, @Nullable @Nullable FormScope formScope, boolean includeFallbacks, Set<String> containersToSort)
      Creates an instance of a AlphabeticSortingFormContribution record class.
      Parameters:
      baseName - the value for the baseName record component
      formScope - the value for the formScope record component
      includeFallbacks - the value for the includeFallbacks record component
      containersToSort - the value for the containersToSort record component
  • Method Details

    • forAllForms

      public static AlphabeticSortingFormContribution forAllForms(String... containersToSort)
    • forSpecificForm

      public static AlphabeticSortingFormContribution forSpecificForm(String baseName, FormScope formScope, String... containersToSort)
    • forFormWithFallbacks

      public static AlphabeticSortingFormContribution forFormWithFallbacks(String baseName, FormScope formScope, String... containersToSort)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • baseName

      @Nullable public @Nullable String baseName()
      Returns the value of the baseName record component.
      Returns:
      the value of the baseName record component
    • formScope

      @Nullable public @Nullable FormScope formScope()
      Returns the value of the formScope record component.
      Returns:
      the value of the formScope record component
    • includeFallbacks

      public boolean includeFallbacks()
      Returns the value of the includeFallbacks record component.
      Returns:
      the value of the includeFallbacks record component
    • containersToSort

      public Set<String> containersToSort()
      Returns the value of the containersToSort record component.
      Returns:
      the value of the containersToSort record component