static EqualsMethod |
EqualsMethod.isolated() |
Creates an equals method implementation that does not invoke the super class's Object.equals(Object) method.
|
static EqualsMethod |
EqualsMethod.requiringSuperClassEquality() |
Creates an equals implementation that invokes the super class's Object.equals(Object) method first.
|
EqualsMethod |
EqualsMethod.withEnumerationTypedFieldsFirst() |
Returns a new version of this equals method that compares fields with enumeration types prior to fields with non-enumeration types.
|
EqualsMethod |
EqualsMethod.withFieldOrder(java.util.Comparator<? super FieldDescription.InDefinedShape> comparator) |
Applies the supplied comparator to determine an order for fields for being compared.
|
EqualsMethod |
EqualsMethod.withIgnoredFields(ElementMatcher<? super FieldDescription.InDefinedShape> ignored) |
Returns a new version of this equals method implementation that ignores the specified fields additionally to any
previously specified fields.
|
EqualsMethod |
EqualsMethod.withNonNullableFields(ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable) |
Returns a new version of this equals method implementation that does not apply a null value check for the specified fields
if they have a reference type additionally to any previously specified fields.
|
EqualsMethod |
EqualsMethod.withPrimitiveTypedFieldsFirst() |
Returns a new version of this equals method that compares fields with primitive types prior to fields with non-primitive types.
|
EqualsMethod |
EqualsMethod.withPrimitiveWrapperTypedFieldsFirst() |
Returns a new version of this equals method that compares fields with primitive wrapper types prior to fields with non-primitive wrapper types.
|
EqualsMethod |
EqualsMethod.withStringTypedFieldsFirst() |
Returns a new version of this equals method that compares fields with String types prior to fields with non-String types.
|