Class ShapeAreaComparator
java.lang.Object
org.stathissideris.ascii2image.core.ShapeAreaComparator
- All Implemented Interfaces:
Comparator<DiagramShape>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(DiagramShape shape1, DiagramShape shape2) Puts diagram shapes in order or area starting from largest to smallestMethods 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
-
ShapeAreaComparator
public ShapeAreaComparator()
-
-
Method Details
-
compare
Puts diagram shapes in order or area starting from largest to smallest- Specified by:
compare
in interfaceComparator<DiagramShape>
-