EqualsVerifierApi<T> |
RelaxedEqualsVerifierApi.andUnequalExample(T example) |
Asks for an unequal instance of T and subsequently returns a fully
constructed instance of EqualsVerifier .
|
EqualsVerifierApi<T> |
RelaxedEqualsVerifierApi.andUnequalExamples(T first,
T... more) |
Asks for a list of unequal instances of T and subsequently returns a
fully constructed instance of EqualsVerifier .
|
<T> EqualsVerifierApi<T> |
ConfiguredEqualsVerifier.forClass(java.lang.Class<T> type) |
Factory method.
|
static <T> EqualsVerifierApi<T> |
EqualsVerifier.forClass(java.lang.Class<T> type) |
Factory method.
|
EqualsVerifierApi<T> |
EqualsVerifierApi.suppress(Warning... warnings) |
Suppresses warnings given by EqualsVerifier .
|
EqualsVerifierApi<T> |
EqualsVerifierApi.usingGetClass() |
Signals that getClass is used in the implementation of the
equals method, instead of an instanceof check.
|
EqualsVerifierApi<T> |
EqualsVerifierApi.withCachedHashCode(java.lang.String cachedHashCodeField,
java.lang.String calculateHashCodeMethod,
T example) |
Signals that T caches its hashCode, instead of re-calculating it each
time the hashCode() method is called.
|
<S> EqualsVerifierApi<T> |
EqualsVerifierApi.withGenericPrefabValues(java.lang.Class<S> otherType,
Func.Func1<?,S> factory) |
Adds a factory to generate prefabricated values for instance fields of
classes with 1 generic type parameter that EqualsVerifier cannot
instantiate by itself.
|
<S> EqualsVerifierApi<T> |
EqualsVerifierApi.withGenericPrefabValues(java.lang.Class<S> otherType,
Func.Func2<?,?,S> factory) |
Adds a factory to generate prefabricated values for instance fields of
classes with 2 generic type parameters that EqualsVerifier cannot
instantiate by itself.
|
EqualsVerifierApi<T> |
EqualsVerifierApi.withIgnoredAnnotations(java.lang.Class<?>... annotations) |
Signals that all given annotations are to be ignored by EqualsVerifier.
|
EqualsVerifierApi<T> |
EqualsVerifierApi.withIgnoredFields(java.lang.String... fields) |
Signals that all given fields are not relevant for the equals
contract.
|
EqualsVerifierApi<T> |
EqualsVerifierApi.withNonnullFields(java.lang.String... fields) |
Signals that all given fields can never be null, and
EqualsVerifier therefore doesn't have to verify that proper null checks
are in place for these fields.
|
EqualsVerifierApi<T> |
EqualsVerifierApi.withOnlyTheseFields(java.lang.String... fields) |
Signals that all given fields, and only the given fields, are
relevant for the equals contract.
|
<S> EqualsVerifierApi<T> |
EqualsVerifierApi.withPrefabValues(java.lang.Class<S> otherType,
S red,
S black) |
Adds prefabricated values for instance fields of classes that
EqualsVerifier cannot instantiate by itself.
|
EqualsVerifierApi<T> |
EqualsVerifierApi.withRedefinedSubclass(java.lang.Class<? extends T> subclass) |
Supplies a reference to a subclass of T in which equals is
overridden.
|
EqualsVerifierApi<T> |
EqualsVerifierApi.withRedefinedSuperclass() |
Signals that T is part of an inheritance hierarchy where equals
is overridden.
|