Class 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 Detail

      • 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 Detail

      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object