|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IElementComparer
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(java.lang.Object a,
java.lang.Object b)
Compares two elements for equality |
int |
hashCode(java.lang.Object element)
Returns the hash code for the given element. |
| Method Detail |
|---|
boolean equals(java.lang.Object a,
java.lang.Object b)
a - the first elementb - the second element
int hashCode(java.lang.Object element)
element - the element the hash code is calculated for
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.