Package uk.co.jemos.podam.common
Class ConstructorLightFirstComparator
- java.lang.Object
-
- uk.co.jemos.podam.common.AbstractConstructorComparator
-
- uk.co.jemos.podam.common.ConstructorLightFirstComparator
-
- All Implemented Interfaces:
Comparator<Constructor<?>>
public class ConstructorLightFirstComparator extends AbstractConstructorComparator
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 less arguments.- Author:
- tedonema
-
-
Field Summary
Fields Modifier and Type Field Description static ConstructorLightFirstComparatorINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateConstructorLightFirstComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Constructor<?> constructor1, Constructor<?> constructor2)-
Methods inherited from class uk.co.jemos.podam.common.AbstractConstructorComparator
compareAnnotations, constructorComplexity
-
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 ConstructorLightFirstComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(Constructor<?> constructor1, Constructor<?> constructor2)
-
-