2 *******************************************************************************
3 * Copyright (C) 2002-2004, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
7 package com.ibm.icu.dev.test.util;
9 public interface Equator {
11 * Comparator function. If overridden, must handle case of null,
12 * and compare any two objects that could be compared.
13 * Must obey normal rules of symmetry: a=b => b=a
14 * and transitivity: a=b & b=c => a=b)
17 * @return true if a and b are equal
19 public boolean isEqual(Object a, Object b);
22 * Must obey normal rules: a=b => getHashCode(a)=getHashCode(b)
24 * @return a hash code for the object
26 public int getHashCode(Object object);