Class ViewerElementComparer

  • All Implemented Interfaces:
    org.eclipse.jface.viewers.IElementComparer

    public class ViewerElementComparer
    extends java.lang.Object
    implements org.eclipse.jface.viewers.IElementComparer
    Compares resources and properties for the viewers.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ViewerElementComparer

        public ViewerElementComparer()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object a,
                              java.lang.Object b)
        Compares two elements for equality
        Specified by:
        equals in interface org.eclipse.jface.viewers.IElementComparer
        Parameters:
        a - the first element
        b - 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:
        hashCode in interface org.eclipse.jface.viewers.IElementComparer
        Parameters:
        element - The element the hash code is calculated for.
        Returns:
        The hash code for the given element.