Interface CollectionGrouping<S>

Type Parameters:
S - The items to group (e.g., a list, an array, etc.)
All Known Implementing Classes:
ListGrouping, ListLinearGrouping, ListOrderedGrouping

public interface CollectionGrouping<S>
Interface representing objects that group collections according to some criterion
Author:
Antonio J. Nebro
  • Method Details

    • numberOfGroups

      int numberOfGroups()
    • computeGroups

      void computeGroups(S itemsToGroup)
    • group

      List<Integer> group(int groupIndex)