org.shapelogic.imageprocessing
Class AreaComparator

java.lang.Object
  extended by org.shapelogic.imageprocessing.AreaComparator
All Implemented Interfaces:
java.util.Comparator<HasArea>

public class AreaComparator
extends java.lang.Object
implements java.util.Comparator<HasArea>

Compare area by pixel size.

Author:
Sami Badawi

Field Summary
static AreaComparator INSTANCE
           
 
Constructor Summary
AreaComparator()
           
 
Method Summary
 int compare(HasArea o1, HasArea o2)
           
 
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
 

Field Detail

INSTANCE

public static final AreaComparator INSTANCE
Constructor Detail

AreaComparator

public AreaComparator()
Method Detail

compare

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


Copyright © 2009. All Rights Reserved.