Package com.gentlyweb.utils
Class Grouper
- java.lang.Object
-
- com.gentlyweb.utils.Grouper
-
public class Grouper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Grouper(java.lang.Class c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroupBy(Getter get)
void
addGroupBy(java.lang.String on)
java.util.Map
group(java.util.List items)
java.util.List
groupSortByGroupSize(java.util.List items, java.lang.String ascDesc)
-
-
-
Method Detail
-
addGroupBy
public void addGroupBy(Getter get) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
addGroupBy
public void addGroupBy(java.lang.String on)
-
group
public java.util.Map group(java.util.List items) throws ChainException
- Throws:
ChainException
-
groupSortByGroupSize
public java.util.List groupSortByGroupSize(java.util.List items, java.lang.String ascDesc) throws ChainException
- Throws:
ChainException
-
-