org.zkoss.zul
Interface GroupComparator<D>

All Superinterfaces:
java.util.Comparator<D>

public interface GroupComparator<D>
extends java.util.Comparator<D>

A comparison function used to compare the group order of two objects, and the order of them in the group if they belongs to the same group.

To know whether two objects is in the same group, compareGroup(D, D) is invoked. If zero is returned, it implies they are in the same group, and then Comparator.compare(T, T) is used to compare the order in the group.

Comparator.compare(T, T) won't be called if they don't belong to the same group.

Since:
3.5.0
Author:
tomyeh

Method Summary
 int compareGroup(D o1, D o2)
          Compares if the two arguments is in the same group.
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

compareGroup

int compareGroup(D o1,
                 D o2)
Compares if the two arguments is in the same group.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo