Package com.iizigo.image.prop
Class ImageDesignerProp.ImageComparator
java.lang.Object
com.iizigo.image.prop.ImageDesignerProp.ImageComparator
- All Implemented Interfaces:
- IViewerComparator,- Comparator<Object>
- Enclosing class:
- ImageDesignerProp
public static class ImageDesignerProp.ImageComparator extends Object implements IViewerComparator, Comparator<Object>
Class sorting images.
- Constructor SummaryConstructors
- Method Summary- 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 Details- ImageComparatorpublic ImageComparator()
 
- Method Details- compareDescription copied from interface:- IViewerComparatorCompares two object in a viewer using the flags.- Specified by:
- comparein 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 0if the first element is equal to the second element; and a positive number if the first element is greater than the second element.
 
- compare- Specified by:
- comparein interface- Comparator<Object>