public class ConstructorHeavyFirstComparator extends AbstractConstructorComparator
The priority goes to constructors with the PodamConstructor
annotation first, and then to those with less arguments.
| Modifier and Type | Field and Description |
|---|---|
static ConstructorHeavyFirstComparator |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
private |
ConstructorHeavyFirstComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Constructor<?> constructor1,
Constructor<?> constructor2) |
compareAnnotations, constructorComplexityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final ConstructorHeavyFirstComparator INSTANCE
public int compare(Constructor<?> constructor1, Constructor<?> constructor2)
Copyright © 2016. All rights reserved.