Record Class DashboardWidgetDescriptor

java.lang.Object
java.lang.Record
com.onec.metadata.DashboardWidgetDescriptor

public record DashboardWidgetDescriptor(String title, String widgetType, int order, String width, String entityType, String entityName, int maxItems, String dateField, String titleField, Map<String,String> extraConfig, String hint) extends Record
  • Constructor Details

    • DashboardWidgetDescriptor

      public DashboardWidgetDescriptor(String title, String widgetType, int order, String width, String entityType, String entityName, int maxItems, String dateField, String titleField, Map<String,String> extraConfig, String hint)
      Creates an instance of a DashboardWidgetDescriptor record class.
      Parameters:
      title - the value for the title record component
      widgetType - the value for the widgetType record component
      order - the value for the order record component
      width - the value for the width record component
      entityType - the value for the entityType record component
      entityName - the value for the entityName record component
      maxItems - the value for the maxItems record component
      dateField - the value for the dateField record component
      titleField - the value for the titleField record component
      extraConfig - the value for the extraConfig record component
      hint - the value for the hint 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. 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.
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • widgetType

      public String widgetType()
      Returns the value of the widgetType record component.
      Returns:
      the value of the widgetType record component
    • order

      public int order()
      Returns the value of the order record component.
      Returns:
      the value of the order record component
    • width

      public String width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • entityType

      public String entityType()
      Returns the value of the entityType record component.
      Returns:
      the value of the entityType record component
    • entityName

      public String entityName()
      Returns the value of the entityName record component.
      Returns:
      the value of the entityName record component
    • maxItems

      public int maxItems()
      Returns the value of the maxItems record component.
      Returns:
      the value of the maxItems record component
    • dateField

      public String dateField()
      Returns the value of the dateField record component.
      Returns:
      the value of the dateField record component
    • titleField

      public String titleField()
      Returns the value of the titleField record component.
      Returns:
      the value of the titleField record component
    • extraConfig

      public Map<String,String> extraConfig()
      Returns the value of the extraConfig record component.
      Returns:
      the value of the extraConfig record component
    • hint

      public String hint()
      Returns the value of the hint record component.
      Returns:
      the value of the hint record component