public abstract class AbstractConstructorComparator extends Object implements Comparator<Constructor<?>>
The priority goes to constructors with the PodamConstructor
annotation first, and then to those with less arguments.
Constructor and Description |
---|
AbstractConstructorComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compareAnnotations(Constructor<?> constructor1,
Constructor<?> constructor2) |
int |
constructorComplexity(Constructor<?> constructor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int constructorComplexity(Constructor<?> constructor)
public int compareAnnotations(Constructor<?> constructor1, Constructor<?> constructor2)
Copyright © 2023. All rights reserved.