Class EqualsMethod.CompoundComparator
java.lang.Object
net.bytebuddy.implementation.EqualsMethod.CompoundComparator
- All Implemented Interfaces:
Comparator<FieldDescription.InDefinedShape>
- Enclosing class:
EqualsMethod
@Enhance
protected static class EqualsMethod.CompoundComparator
extends Object
implements Comparator<FieldDescription.InDefinedShape>
A compound comparator that compares the values of multiple fields.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompoundComparator(Comparator<? super FieldDescription.InDefinedShape>... comparator) Creates a compound comparator.protectedCompoundComparator(List<? extends Comparator<? super FieldDescription.InDefinedShape>> comparators) Creates a compound comparator. -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CompoundComparator
@Enhance protected CompoundComparator(Comparator<? super FieldDescription.InDefinedShape>... comparator) Creates a compound comparator.- Parameters:
comparator- All comparators to be applied in the application order.
-
CompoundComparator
protected CompoundComparator(List<? extends Comparator<? super FieldDescription.InDefinedShape>> comparators) Creates a compound comparator.- Parameters:
comparators- All comparators to be applied in the application order.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<FieldDescription.InDefinedShape>
-