public interface GroupHandler
Modifier and Type | Method and Description |
---|---|
Object |
getGroup(Object data)
Returns a object that will be invoked by
compareTo(Object)
to identify whether the returned object is in the same group. |
Object getGroup(Object data)
compareTo(Object)
to identify whether the returned object is in the same group.
For example, there are two date objects("2010/10/08", "2010/12/21") and they return a same object called "2010", so these two date objects will be the same group("2010").
data
- a data objectCopyright © 2023. All rights reserved.