Class ImageDesignerProp.ImageComparator

  • All Implemented Interfaces:
    IViewerComparator, java.util.Comparator<java.lang.Object>
    Enclosing class:
    ImageDesignerProp

    public static class ImageDesignerProp.ImageComparator
    extends java.lang.Object
    implements IViewerComparator, java.util.Comparator<java.lang.Object>
    Class sorting images.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      intcompare​(java.lang.Object o1, java.lang.Object o2) 
      intcompare​(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object o1, java.lang.Object o2)
      Compares two object in a viewer using the flags.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • ImageComparator

        public ImageComparator()
    • Method Detail

      • compare

        public int compare​(org.eclipse.jface.viewers.Viewer viewer,
                           java.lang.Object o1,
                           java.lang.Object o2)
        Description copied from interface: IViewerComparator
        Compares two object in a viewer using the flags.
        Specified by:
        compare in interface IViewerComparator
        Parameters:
        viewer - The viewer.
        o1 - First object.
        o2 - Second object.
        Returns:
        a negative number if the first element is less than the second element; the value 0 if the first element is equal to the second element; and a positive number if the first element is greater than the second element.
      • compare

        public int compare​(java.lang.Object o1,
                           java.lang.Object o2)
        Specified by:
        compare in interface java.util.Comparator<java.lang.Object>