|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to compare elements in a viewer for equality,
and to provide the hash code for an element.
This allows the client of the viewer to specify different equality criteria
and a different hash code implementation than the
equals
and hashCode
implementations of the
elements themselves.
StructuredViewer.setComparer(org.eclipse.jface.viewers.IElementComparer)
Method Summary | |
boolean |
equals(Object a,
Object b)
Compares two elements for equality |
int |
hashCode(Object element)
Returns the hash code for the given element. |
Method Detail |
public boolean equals(Object a, Object b)
a
- the first elementb
- the second element
public int hashCode(Object element)
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.