Package com.jidesoft.grouper
Class DefaultObjectGrouper
- java.lang.Object
-
- com.jidesoft.grouper.AbstractObjectGrouper
-
- com.jidesoft.grouper.DefaultObjectGrouper
-
- All Implemented Interfaces:
ObjectGrouper
public class DefaultObjectGrouper extends AbstractObjectGrouper
Default implementation ofObjectGrouper. Its getGroupValue simply returns the value directly.
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectGrouper()DefaultObjectGrouper(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Gets the name of this object grouper.java.lang.Class<?>getType()Gets the group value type.java.lang.ObjectgetValue(java.lang.Object value)Gets the group value after this value is grouped.voidsetName(java.lang.String name)-
Methods inherited from class com.jidesoft.grouper.AbstractObjectGrouper
getComparatorContext, getConverterContext
-
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue(java.lang.Object value)
Description copied from interface:ObjectGrouperGets the group value after this value is grouped. If two objects return the same value in this getGroupValue method, the two objects are considered as one group. We assume all values returned from this method are of the same type which is returned inObjectGrouper.getType().- Parameters:
value- the value- Returns:
- the value after grouped.
-
getType
public java.lang.Class<?> getType()
Description copied from interface:ObjectGrouperGets the group value type. It should be the type of the value that is returned from the getGroupValue.- Returns:
- the group value type.
-
getName
public java.lang.String getName()
Description copied from interface:ObjectGrouperGets the name of this object grouper.- Returns:
- the name of this grouper.
-
setName
public void setName(java.lang.String name)
-
-