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