com.gentlyweb.utils
Class Grouper

java.lang.Object
  extended by com.gentlyweb.utils.Grouper

public class Grouper
extends Object


Constructor Summary
Grouper(Class c)
           
 
Method Summary
 void addGroupBy(Getter get)
           
 void addGroupBy(String on)
           
 Map group(List items)
           
 List groupSortByGroupSize(List items, String ascDesc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grouper

public Grouper(Class c)
Method Detail

addGroupBy

public void addGroupBy(Getter get)
                throws IllegalArgumentException
Throws:
IllegalArgumentException

addGroupBy

public void addGroupBy(String on)

group

public Map group(List items)
          throws ChainException
Throws:
ChainException

groupSortByGroupSize

public List groupSortByGroupSize(List items,
                                 String ascDesc)
                          throws ChainException
Throws:
ChainException