Module nl.jqno.equalsverifier
Class AbstractDelegationChecker<T>
java.lang.Object
nl.jqno.equalsverifier.internal.checkers.AbstractDelegationChecker<T>
- All Implemented Interfaces:
Checker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CachedHashCodeInitializer<T> private final ClassProbe<T> private final SubjectCreator<T> private final TypeTagprivate final ValueProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate FormatterbuildAbstractDelegationErrorMessage(Class<?> c, boolean prefabPossible, String method, String originalMessage) private FormatterbuildSingleAbstractMethodErrorMessage(Class<?> c, boolean isEqualsAbstract, boolean bothShouldBeConcrete) voidcheck()private voidcheckAbstractDelegation(T instance, T copy) private voidprivate voidprivate <S> voidcheckAbstractMethods(Class<?> instanceClass, S instance, S copy, boolean prefabPossible) private StringdeterminePrefabValueTypeForErrorMessage(boolean prefabPossible, String className, String originalMessage) private <U> Tuple<U> safelyGetTuple(TypeTag tag, String fieldName)
-
Field Details
-
type
-
typeTag
-
subjectCreator
-
valueProvider
-
classProbe
-
cachedHashCodeInitializer
-
-
Constructor Details
-
AbstractDelegationChecker
-
-
Method Details
-
check
public void check() -
checkAbstractEqualsAndHashCode
private void checkAbstractEqualsAndHashCode() -
checkAbstractDelegationInFields
private void checkAbstractDelegationInFields() -
safelyGetTuple
-
checkAbstractDelegation
-
buildSingleAbstractMethodErrorMessage
-
checkAbstractMethods
private <S> void checkAbstractMethods(Class<?> instanceClass, S instance, S copy, boolean prefabPossible) -
buildAbstractDelegationErrorMessage
-
determinePrefabValueTypeForErrorMessage
-