JIDE 3.5.15

com.jidesoft.grouper
Class DefaultObjectGrouper

java.lang.Object
  extended by com.jidesoft.grouper.AbstractObjectGrouper
      extended by com.jidesoft.grouper.DefaultObjectGrouper
All Implemented Interfaces:
ObjectGrouper

public class DefaultObjectGrouper
extends AbstractObjectGrouper

Default implementation of ObjectGrouper. Its getGroupValue simply returns the value directly.


Constructor Summary
DefaultObjectGrouper()
           
DefaultObjectGrouper(String name)
           
 
Method Summary
 String getName()
          Gets the name of this object grouper.
 Class<?> getType()
          Gets the group value type.
 Object getValue(Object value)
          Gets the group value after this value is grouped.
 void setName(String name)
           
 
Methods inherited from class com.jidesoft.grouper.AbstractObjectGrouper
getComparatorContext, getConverterContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultObjectGrouper

public DefaultObjectGrouper()

DefaultObjectGrouper

public DefaultObjectGrouper(String name)
Method Detail

getValue

public Object getValue(Object value)
Description copied from interface: ObjectGrouper
Gets 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 in ObjectGrouper.getType().

Parameters:
value - the value
Returns:
the value after grouped.

getType

public Class<?> getType()
Description copied from interface: ObjectGrouper
Gets 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 String getName()
Description copied from interface: ObjectGrouper
Gets the name of this object grouper.

Returns:
the name of this grouper.

setName

public void setName(String name)

JIDE 3.5.15