Interface CustomGroupValue<E>


public interface CustomGroupValue<E>
This class represents the group of values coming from a non aggregate field in an aggregation function.
Since:
4.6
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addValue(E value)
    Appends the specified value to the end of this group.
    void
    addValue(E value, int position)
    Inserts the specified value at the specified position in this group.
    getValue(int position)
    Returns the value in the group at the specified position.
    Returns all the values in the group.
    removeValue(int position)
    Removes the value at the specified position in this group.
    int
    Returns the number of values of the group value.
  • Method Details

    • size

      int size()
      Returns the number of values of the group value.
      Returns:
      the number of values of the group value.
    • getValue

      E getValue(int position)
      Returns the value in the group at the specified position.
      Parameters:
      position - index of element to return.
      Returns:
      the element at the specified position in this group.
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size()).
    • getValues

      List<E> getValues()
      Returns all the values in the group.
      Returns:
      all the values in the group.
    • addValue

      void addValue(E value, int position)
      Inserts the specified value at the specified position in this group. Shifts the element currently at that position (if any) and any subsequent elements to the right.
      Parameters:
      position - index at which the specified value is to be inserted.
      value - value to be inserted.
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size()).
    • addValue

      void addValue(E value)
      Appends the specified value to the end of this group.

      Parameters:
      value - element to be appended to this group.
    • removeValue

      E removeValue(int position)
      Removes the value at the specified position in this group. Shifts any subsequent values to the left . Returns the value that was removed from the group.
      Parameters:
      position - the index of the value to removed.
      Returns:
      the value previously at the specified position.
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size()).