Uses of Annotation Interface
nl.jqno.equalsverifier.CheckReturnValue
Packages that use CheckReturnValue
-
Uses of CheckReturnValue in nl.jqno.equalsverifier
Methods in nl.jqno.equalsverifier with annotations of type CheckReturnValueModifier and TypeMethodDescriptionstatic ConfiguredEqualsVerifierEqualsVerifier.configure()Creates a configuration object that can be reused with EqualsVerifier for multiple classes.static <T> SingleTypeEqualsVerifierApi<T> Factory method.EqualsVerifier.forClasses(Class<?> first, Class<?> second, Class<?>... more) Factory method.EqualsVerifier.forClasses(Iterable<Class<?>> classes) Factory method.static <T> SingleTypeEqualsVerifierApi<T> EqualsVerifier.forExamples(T red, T blue) Factory method.EqualsVerifier.forPackage(String packageName, ScanOption... options) Factory method.static <T> RelaxedEqualsVerifierApi<T> EqualsVerifier.forRelaxedEqualExamples(T first, T second, T... more) Factory method.static ConfiguredEqualsVerifierEqualsVerifier.simple()Creates a configuration object that is pre-configured so that it can be used with most IDE-generatedequalsandhashCodemethods without any further configuration. -
Uses of CheckReturnValue in nl.jqno.equalsverifier.api
Methods in nl.jqno.equalsverifier.api with annotations of type CheckReturnValueModifier 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.ConfiguredEqualsVerifier.copy()Returns a copy of the configuration.<T> SingleTypeEqualsVerifierApi<T> Factory method.ConfiguredEqualsVerifier.forClasses(Class<?> first, Class<?> second, Class<?>... more) Factory method.ConfiguredEqualsVerifier.forClasses(Iterable<Class<?>> classes) Factory method.<T> SingleTypeEqualsVerifierApi<T> ConfiguredEqualsVerifier.forExamples(T red, T blue) Factory method.ConfiguredEqualsVerifier.forPackage(String packageName, ScanOption... options) Factory method.Sets modes that influence howEqualsVerifieroperates.Sets modes that influence howEqualsVerifieroperates.Suppresses warnings given byEqualsVerifier.Suppresses warnings given byEqualsVerifier.Suppresses warnings given byEqualsVerifier.ConfiguredEqualsVerifier.usingGetClass()Signals thatgetClassis used in the implementation of theequalsmethod, instead of aninstanceofcheck.MultipleTypeEqualsVerifierApi.usingGetClass()Signals thatgetClassis used in the implementation of theequalsmethod, instead of aninstanceofcheck.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.ConfiguredEqualsVerifier.withFieldnameToGetterConverter(Function<String, String> converter) MultipleTypeEqualsVerifierApi.withFieldnameToGetterConverter(Function<String, String> converter) Determines how a getter name can be derived from a field name.SingleTypeEqualsVerifierApi.withFieldnameToGetterConverter(Function<String, String> converter) Determines how a getter name can be derived from a field name.ConfiguredEqualsVerifier.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.ConfiguredEqualsVerifier.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.MultipleTypeEqualsVerifierApi.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.MultipleTypeEqualsVerifierApi.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.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.ConfiguredEqualsVerifier.withPrefabValues(Class<S> otherType, S red, S blue) Adds prefabricated values for instance fields of classes that EqualsVerifier cannot instantiate by itself.ConfiguredEqualsVerifier.withPrefabValues(Class<S> otherType, S red, S blue, S redCopy) Adds prefabricated values for instance fields of classes that EqualsVerifier cannot instantiate by itself.MultipleTypeEqualsVerifierApi.withPrefabValues(Class<S> otherType, S red, S blue) Adds prefabricated values for instance fields of classes that EqualsVerifier cannot instantiate by itself.MultipleTypeEqualsVerifierApi.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.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.ConfiguredEqualsVerifier.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.MultipleTypeEqualsVerifierApi.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.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.