Interface GroupHandler


public interface GroupHandler
A group handler groups different objects in a same group.
Author:
jumperchen
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a object that will be invoked by compareTo(Object) to identify whether the returned object is in the same group.
  • Method Details

    • getGroup

      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.

      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").
      Parameters:
      data - a data object