Record Class TopbarDisplayOptions

java.lang.Object
java.lang.Record
io.meeds.layout.model.TopbarDisplayOptions

public record TopbarDisplayOptions(Boolean displayCompanyName, Boolean displaySiteName, Boolean displayMobileCompanyLogo, List<TopbarApplicationOption> applications) extends Record
What the topbar shows: on input, a null field leaves its stored value and the applications listed are merged into the stored list, each named by identifier or by the name shown in the user's language; on output, every field as stored, each application named in the user's language.
  • Constructor Details

    • TopbarDisplayOptions

      public TopbarDisplayOptions(Boolean displayCompanyName, Boolean displaySiteName, Boolean displayMobileCompanyLogo, List<TopbarApplicationOption> applications)
      Creates an instance of a TopbarDisplayOptions record class.
      Parameters:
      displayCompanyName - the value for the displayCompanyName record component
      displaySiteName - the value for the displaySiteName record component
      displayMobileCompanyLogo - the value for the displayMobileCompanyLogo record component
      applications - the value for the applications record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • displayCompanyName

      public Boolean displayCompanyName()
      Returns the value of the displayCompanyName record component.
      Returns:
      the value of the displayCompanyName record component
    • displaySiteName

      public Boolean displaySiteName()
      Returns the value of the displaySiteName record component.
      Returns:
      the value of the displaySiteName record component
    • displayMobileCompanyLogo

      public Boolean displayMobileCompanyLogo()
      Returns the value of the displayMobileCompanyLogo record component.
      Returns:
      the value of the displayMobileCompanyLogo record component
    • applications

      public List<TopbarApplicationOption> applications()
      Returns the value of the applications record component.
      Returns:
      the value of the applications record component