java.lang.Object
org.eclipse.nebula.widgets.nattable.extension.glazedlists.groupBy.GroupByObject

public class GroupByObject extends Object
This class is used to add tree items that are added to the tree path for grouping purposes. Contains the value that is used for grouping and the grouping index to ensure the correct ordering.
  • Constructor Details

    • GroupByObject

      public GroupByObject(Object value, Map<Integer,Object> descriptor)
      Parameters:
      value - The value that is used for grouping.
      descriptor - The description of the grouping (index -> value).
      Note: The map needs to be an ordered map to work correctly, e.g. LinkedHashMap
  • Method Details

    • getValue

      public Object getValue()
      Returns:
      The value that is used for grouping.
    • getDescriptor

      public Map<Integer,Object> getDescriptor()
      Returns:
      The description of the grouping (index -> value)
    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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