Package com.gentlyweb.utils
Class Grouper
- java.lang.Object
-
- com.gentlyweb.utils.Grouper
-
public class Grouper extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroupBy(Getter get)
void
addGroupBy(String on)
Map
group(List items)
List
groupSortByGroupSize(List items, String ascDesc)
-
-
-
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
-
-