Interface GroupingInfo

All Known Implementing Classes:
GroupsListModel.GroupDataInfo

public interface GroupingInfo
Represents the runtime information of each iteration caused by GroupsModel
Since:
6.0.0
Author:
jumperchen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
    Indicates the data is an element of a group.
    static final byte
    Indicates the data is a group (a.k.a., the head of the group).
    static final byte
    Indicates the data is a group foot.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the index of this group
    int
    The offset of an element in a group.
    int
    The type of the data.
    boolean
    Whether the group is opened.
  • Field Details

    • GROUP

      static final byte GROUP
      Indicates the data is a group (a.k.a., the head of the group).
      See Also:
    • GROUPFOOT

      static final byte GROUPFOOT
      Indicates the data is a group foot.
      See Also:
    • ELEMENT

      static final byte ELEMENT
      Indicates the data is an element of a group.
      See Also:
  • Method Details

    • getType

      int getType()
      The type of the data. It is one of GROUP, GROUPFOOT and ELEMENT.
    • getGroupIndex

      int getGroupIndex()
      Returns the index of this group
    • getOffset

      int getOffset()
      The offset of an element in a group. It is meaningful only if getType() is ELEMENT.
    • isOpen

      boolean isOpen()
      Whether the group is opened. It is meaningful only if getType() is GROUP.