Uses of Class
nl.jqno.equalsverifier.api.SingleTypeEqualsVerifierApi
Packages that use SingleTypeEqualsVerifierApi
Package
Description
-
Uses of SingleTypeEqualsVerifierApi in nl.jqno.equalsverifier
Methods in nl.jqno.equalsverifier that return SingleTypeEqualsVerifierApiModifier and TypeMethodDescriptionstatic <T> SingleTypeEqualsVerifierApi<T> Factory method.static <T> SingleTypeEqualsVerifierApi<T> EqualsVerifier.forExamples(T red, T blue) 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.<T> SingleTypeEqualsVerifierApi<T> Factory method.<T> SingleTypeEqualsVerifierApi<T> ConfiguredEqualsVerifier.forExamples(T red, T blue) Factory method.Sets modes that influence howEqualsVerifieroperates.Suppresses warnings given byEqualsVerifier.SingleTypeEqualsVerifierApi.usingGetClass()Signals thatgetClassis used in the implementation of theequalsmethod, instead of aninstanceofcheck.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.withFactory(InstanceFactory<T> factory) Provides a factory for the class under test, in case EqualsVerifier is unable to instantiate it without help.SingleTypeEqualsVerifierApi.withFactory(InstanceFactory<T> factory, InstanceFactory<? extends T> subclassFactory) Provides a factory for the class under test, in case EqualsVerifier is unable to instantiate it without help, as well as a factory for a subclass of the class under test.SingleTypeEqualsVerifierApi.withFieldnameToGetterConverter(Function<String, String> converter) Determines how a getter name can be derived from a field name.private SingleTypeEqualsVerifierApi<T> SingleTypeEqualsVerifierApi.withFieldsAddedAndValidated(Set<String> collection, List<String> specifiedFields) 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 theequalscontract.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, andEqualsVerifiertherefore 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 theequalscontract.SingleTypeEqualsVerifierApi.withPrefabValues(Class<S> otherType, S red, S blue) Adds prefabricated values for instance fields of classes that EqualsVerifier cannot instantiate by itself.SingleTypeEqualsVerifierApi.withPrefabValues(Class<S> otherType, S red, S blue, S redCopy) Adds prefabricated values for instance fields of classes that EqualsVerifier cannot instantiate by itself.SingleTypeEqualsVerifierApi.withPrefabValuesForField(String fieldName, S red, S blue) Adds prefabricated values for instance fields with a given name (and only the fields with the given name) that EqualsVerifier cannot instantiate by itself.SingleTypeEqualsVerifierApi.withPrefabValuesForField(String fieldName, S red, S blue, S redCopy) Adds prefabricated values for instance fields with a given name (and only the fields with the given name) that EqualsVerifier cannot instantiate by itself.SingleTypeEqualsVerifierApi.withRedefinedSubclass(Class<? extends T> subclass) Supplies a reference to a subclass of T in whichequalsis overridden.SingleTypeEqualsVerifierApi.withRedefinedSubclass(InstanceFactory<? extends T> subclassFactory) Supplies a factory for a subclass of T in whichequalsis overridden.SingleTypeEqualsVerifierApi.withRedefinedSuperclass()Signals that T is part of an inheritance hierarchy whereequalsis overridden.SingleTypeEqualsVerifierApi.withRedefinedSuperclass(InstanceFactory<?> superclassFactory) Signals that T is part of an inheritance hierarchy whereequalsis overridden.SingleTypeEqualsVerifierApi.withResettablePrefabValues(Class<S> otherType, Supplier<S> red, Supplier<S> blue) Adds Suppliers for resettable prefabricated values for instance fields of classes that EqualsVerifier cannot instantiate by itself. -
Uses of SingleTypeEqualsVerifierApi in nl.jqno.equalsverifier.internal.util
Methods in nl.jqno.equalsverifier.internal.util with parameters of type SingleTypeEqualsVerifierApiModifier and TypeMethodDescriptionstatic <T> voidFieldToPrefabValues.move(SingleTypeEqualsVerifierApi<T> api, Class<T> type, T red, T blue)