Class ViewerElementComparer

java.lang.Object
com.iizigo.swt.ViewerElementComparer
All Implemented Interfaces:
IElementComparer

public class ViewerElementComparer extends Object implements IElementComparer
Compares resources and properties for the viewers.
Author:
Christopher Mindus
  • Constructor Details

    • ViewerElementComparer

      public ViewerElementComparer()
  • Method Details

    • equals

      public boolean equals(Object a, Object b)
      Compares two elements for equality
      Specified by:
      equals in interface IElementComparer
      Parameters:
      a - the first element
      b - the second element
      Returns:
      Whether a is equal to b.
    • hashCode

      public int hashCode(Object element)
      Returns the hash code for the given element.
      Specified by:
      hashCode in interface IElementComparer
      Parameters:
      element - The element the hash code is calculated for.
      Returns:
      The hash code for the given element.