Class ListGrouping<C extends Comparable<C>>

java.lang.Object
org.uma.jmetal.util.grouping.impl.ListGrouping<C>
Type Parameters:
C -
All Implemented Interfaces:
CollectionGrouping<List<C>>
Direct Known Subclasses:
ListLinearGrouping, ListOrderedGrouping

public abstract class ListGrouping<C extends Comparable<C>> extends Object implements CollectionGrouping<List<C>>
Abstract class that groups a list of Comparable entities by some order in the collection. The number of groups is a constructor parameter and the group size is computed by dividing the list size by the number of groups. If the remainder of this division is not zero, the last group will contain the remaining index values (so, its size would be higher than the size of the rest of groups).
Author:
Antonio J. Nebro