org.zkoss.zul
Interface GroupComparator

All Superinterfaces:
java.util.Comparator

public interface GroupComparator
extends java.util.Comparator

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(java.lang.Object, java.lang.Object) is invoked. If zero is returned, it implies they are in the same group, and then Comparator.compare(java.lang.Object, java.lang.Object) is used to compare the order in the group.

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

Since:
3.5.0
Author:
tomyeh

Method Summary
 int compareGroup(java.lang.Object o1, java.lang.Object 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(java.lang.Object o1,
                 java.lang.Object o2)
Compares if the two arguments is in the same group.



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