| |
|
| com.jidesoft.grouper.ObjectGrouper
All known Subclasses: com.jidesoft.grouper.AbstractObjectGrouper,
ObjectGrouper | public interface ObjectGrouper (Code) | | An interface that can convert a object to a group so that the objects that has the same group can be grouped together.
We suggest you extends
com.jidesoft.grouper.AbstractObjectGrouper if you want to create your own ObjectGrouper
in case we add new methods to this interface due to requirement changes.
|
getComparatorContext | ComparatorContext getComparatorContext()(Code) | | Gets the comparator context for the value returned from this object grouper.
This comprator context will be used to find the ObjectComparator that will sort the
values return from
ObjectGrouper.getValue(Object) method whenever sorting is needed.
the converter context. |
getConverterContext | ConverterContext getConverterContext()(Code) | | Gets the converter context for the value returned from this object grouper.
This converter context will be used to find the ObjectConverter that will convert
the value returned from
ObjectGrouper.getValue(Object) method to String so that it can be displayed somewhere.
the converter context. |
getName | String getName()(Code) | | Gets the name of this object grouper.
the name of this grouper. |
getType | Class> getType()(Code) | | Gets the group value type. It should be the type of the value that is returned from the getGroupValue.
the group value type. |
getValue | Object getValue(Object value)(Code) | | 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 the value after grouped. |
|
|
|