Interface CountInfo

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CountInfo get​(int i)
      Returns the child CountInfo object at the given index.
      int getCount()
      Returns the count of items at this level.
      int getField()
      Returns the field that this count is grouped by.
      CountInfo getParent()
      Returns the parent CountInfo, if one exists.
      int getUniqueCount()
      Returns the count of unique items at this level.
      java.lang.String getValue()
      Returns the value for the current field that this count grouping represents.
      boolean hasChildren()
      Returns whether there is child CountInfo objects or not.
      int size()
      Returns the number of child CountInfo objects.
    • Method Detail

      • getField

        int getField()
        Returns the field that this count is grouped by.
        Returns:
        the field that this count is grouped by.
        See Also:
        CountSettings.add(int)
      • getValue

        java.lang.String getValue()
        Returns the value for the current field that this count grouping represents.
        Returns:
        the value for the current field that this count grouping represents.
      • getCount

        int getCount()
        Returns the count of items at this level.
        Returns:
        the count of items at this level.
      • hasChildren

        boolean hasChildren()
        Returns whether there is child CountInfo objects or not.
        Returns:
        true if there is child CountInfo objects.
      • size

        int size()
        Returns the number of child CountInfo objects.
        Returns:
        the number of child CountInfo objects.
      • get

        CountInfo get​(int i)
        Returns the child CountInfo object at the given index.
        Parameters:
        i - the position of the child CountInfo
        Returns:
        the child CountInfo.
      • getParent

        CountInfo getParent()
        Returns the parent CountInfo, if one exists. If there is no parent CountInfo, meaning it is a top-level grouping, this method will return null.
        Returns:
        the parent CountInfo, if one exists. Otherwise returns null.
      • getUniqueCount

        int getUniqueCount()
        Returns the count of unique items at this level. If this is not meaningfully different from getCount(), then the result of getCount() will be returned.
        Returns:
        the count of unique items at this level.