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 java.lang.Object implements org.eclipse.jface.viewers.IElementComparerCompares resources and properties for the viewers.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description ViewerElementComparer()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object a, java.lang.Object b)Compares two elements for equalityinthashCode(java.lang.Object element)Returns the hash code for the given element.
Method Detail
equals
public boolean equals(java.lang.Object a, java.lang.Object b)Compares two elements for equality- Specified by:
equalsin interfaceorg.eclipse.jface.viewers.IElementComparer- Parameters:
a- the first elementb- the second element- Returns:
- Whether a is equal to b.
hashCode
public int hashCode(java.lang.Object element)
Returns the hash code for the given element.- Specified by:
hashCodein interfaceorg.eclipse.jface.viewers.IElementComparer- Parameters:
element- The element the hash code is calculated for.- Returns:
- The hash code for the given element.