Package com.iizigo.swt
Class ViewerElementComparer
java.lang.Object
com.iizigo.swt.ViewerElementComparer
- All Implemented Interfaces:
org.eclipse.jface.viewers.IElementComparer
public class ViewerElementComparer extends Object implements org.eclipse.jface.viewers.IElementComparer
Compares resources and properties for the viewers.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Constructor Details
ViewerElementComparer
public ViewerElementComparer()
Method Details
equals
Compares two elements for equality- Specified by:
equals
in interfaceorg.eclipse.jface.viewers.IElementComparer
- Parameters:
a
- the first elementb
- the second element- Returns:
- Whether a is equal to b.
hashCode
Returns the hash code for the given element.- Specified by:
hashCode
in interfaceorg.eclipse.jface.viewers.IElementComparer
- Parameters:
element
- The element the hash code is calculated for.- Returns:
- The hash code for the given element.