Uses of Class
nl.jqno.equalsverifier.api.SingleTypeEqualsVerifierApi
Packages that use SingleTypeEqualsVerifierApi
-
Uses of SingleTypeEqualsVerifierApi in nl.jqno.equalsverifier
Methods in nl.jqno.equalsverifier that return SingleTypeEqualsVerifierApiModifier and TypeMethodDescription<T> SingleTypeEqualsVerifierApi<T>
Factory method.static <T> SingleTypeEqualsVerifierApi<T>
Factory method. -
Uses of SingleTypeEqualsVerifierApi in nl.jqno.equalsverifier.api
Methods in nl.jqno.equalsverifier.api that return SingleTypeEqualsVerifierApiModifier and TypeMethodDescriptionRelaxedEqualsVerifierApi.andUnequalExample
(T example) Asks for an unequal instance of T and subsequently returns a fully constructed instance ofEqualsVerifier
.final SingleTypeEqualsVerifierApi<T>
RelaxedEqualsVerifierApi.andUnequalExamples
(T first, T... more) Asks for a list of unequal instances of T and subsequently returns a fully constructed instance ofEqualsVerifier
.Suppresses warnings given byEqualsVerifier
.SingleTypeEqualsVerifierApi.usingGetClass()
Signals thatgetClass
is used in the implementation of theequals
method, instead of aninstanceof
check.SingleTypeEqualsVerifierApi.withCachedHashCode
(String cachedHashCodeField, String calculateHashCodeMethod, T example) Signals that T caches its hashCode, instead of re-calculating it each time thehashCode()
method is called.SingleTypeEqualsVerifierApi.withGenericPrefabValues
(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.SingleTypeEqualsVerifierApi.withGenericPrefabValues
(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.SingleTypeEqualsVerifierApi.withIgnoredAnnotations
(Class<?>... annotations) Signals that all given annotations are to be ignored by EqualsVerifier.SingleTypeEqualsVerifierApi.withIgnoredFields
(String... fields) Signals that all given fields are not relevant for theequals
contract.SingleTypeEqualsVerifierApi.withLombokCachedHashCode
(T example) Signals that T uses Lombok to cache its hashCode, instead of re-calculating it each time thehashCode()
method is called.SingleTypeEqualsVerifierApi.withNonnullFields
(String... fields) Signals that all given fields can never be null, andEqualsVerifier
therefore doesn't have to verify that proper null checks are in place for these fields.SingleTypeEqualsVerifierApi.withOnlyTheseFields
(String... fields) Signals that all given fields, and only the given fields, are relevant for theequals
contract.SingleTypeEqualsVerifierApi.withPrefabValues
(Class<S> otherType, S red, S blue) Adds prefabricated values for instance fields of classes that EqualsVerifier cannot instantiate by itself.SingleTypeEqualsVerifierApi.withRedefinedSubclass
(Class<? extends T> subclass) Supplies a reference to a subclass of T in whichequals
is overridden.SingleTypeEqualsVerifierApi.withRedefinedSuperclass()
Signals that T is part of an inheritance hierarchy whereequals
is overridden.SingleTypeEqualsVerifierApi.withResetCaches()
Signals that all internal caches need to be reset.