Class BaseGroupInfo

java.lang.Object
io.jmix.groupgridflowui.data.BaseGroupInfo
All Implemented Interfaces:
GroupInfo

public class BaseGroupInfo extends Object implements GroupInfo
Class contains information about the current cell value and cell value of parent group columns.
  • Field Details

  • Constructor Details

    • BaseGroupInfo

      public BaseGroupInfo(@Nullable GroupInfo parent, org.apache.commons.collections4.map.LinkedMap<GroupProperty,Object> groupingValues)
  • Method Details

    • getParent

      public GroupInfo getParent()
      Specified by:
      getParent in interface GroupInfo
      Returns:
      parent group or null if this is a root group
    • getPropertyValue

      @Nullable public <T> T getPropertyValue(GroupProperty property)
      Description copied from interface: GroupInfo
      Returns the value by group property. If the group is a child, it also provides property values of the parent groups.
      Specified by:
      getPropertyValue in interface GroupInfo
      Type Parameters:
      T - property value type
      Parameters:
      property - group property
      Returns:
      group property value or null
    • getProperty

      public GroupProperty getProperty()
      Specified by:
      getProperty in interface GroupInfo
      Returns:
      group property
    • getValue

      @Nullable public <T> T getValue()
      Description copied from interface: GroupInfo
      Returns the value of the group property.
      Specified by:
      getValue in interface GroupInfo
      Type Parameters:
      T - property value type
      Returns:
      group property value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object