1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 * David Saff (saff@mit.edu) - bug 102632: [JUnit] Support for JUnit 4. 11 *******************************************************************************/ 12 13 package org.eclipse.jdt.internal.junit.runner; 14 15 /** 16 * This is a copy of IElementComparer from org.eclipse.jface.viewers 17 */ 18 public /* package */ 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 boolean equals(Object a, Object b); 28 29 /** 30 * Returns the hash code for the given element. 31 * 32 * @param element the element 33 * @return the hash code for the given element 34 */ 35 int hashCode(Object element); 36 } 37