01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: * Darrell Meyer <darrell@mygwt.net> - derived implementation
11: *******************************************************************************/package net.mygwt.ui.client.viewer;
12:
13: /**
14: * This interface is used to compare elements in a viewer for equality. This
15: * allows the client of the viewer to specify different equality criteria
16: * implementation than the equals implementations of the elements themselves.
17: */
18: public interface IElementComparer {
19:
20: /**
21: * Compares two elements for equality.
22: *
23: * @param a the first element
24: * @param b the second element
25: * @return whether a is equal to b
26: */
27: public boolean equals(Object a, Object b);
28:
29: }
|