| org.eclipse.jface.viewers.IElementComparer
IElementComparer | public interface IElementComparer (Code) | | 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.
See Also: StructuredViewer.setComparer |
equals | boolean equals(Object a, Object b)(Code) | | Compares two elements for equality
Parameters: a - the first element Parameters: b - the second element whether a is equal to b |
hashCode | int hashCode(Object element)(Code) | | Returns the hash code for the given element.
Parameters: element - the element the hash code is calculated for the hash code for the given element |
|
|