Class ShapeAreaComparator
java.lang.Object
org.stathissideris.ascii2image.core.ShapeAreaComparator
- All Implemented Interfaces:
Comparator<DiagramShape>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(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, waitMethods 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:
comparein interfaceComparator<DiagramShape>
-