Package uk.co.jemos.podam.common
Class MethodLightFirstComparator
- java.lang.Object
-
- uk.co.jemos.podam.common.AbstractMethodComparator
-
- uk.co.jemos.podam.common.MethodLightFirstComparator
-
- All Implemented Interfaces:
Comparator<Method>
public class MethodLightFirstComparator extends AbstractMethodComparator
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
-
-
Field Summary
Fields Modifier and Type Field Description static MethodLightFirstComparatorINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateMethodLightFirstComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Method method1, Method method2)-
Methods inherited from class uk.co.jemos.podam.common.AbstractMethodComparator
compareAnnotations, methodComplexity
-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final MethodLightFirstComparator INSTANCE
-
-