Package uk.co.jemos.podam.common
Class AbstractMethodComparator
- java.lang.Object
-
- uk.co.jemos.podam.common.AbstractMethodComparator
-
- All Implemented Interfaces:
Comparator<Method>
- Direct Known Subclasses:
MethodHeavyFirstComparator,MethodLightFirstComparator
public abstract class AbstractMethodComparator extends Object implements Comparator<Method>
It provides a comparator to sort the constructor to choose first.The priority goes to constructors with the
PodamConstructorannotation first, and then to those with more arguments.- Author:
- tedonema
-
-
Constructor Summary
Constructors Constructor Description AbstractMethodComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareAnnotations(Method method1, Method method2)intmethodComplexity(Method method)-
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
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-