Module nl.jqno.equalsverifier
Class HierarchyChecker<T>
java.lang.Object
nl.jqno.equalsverifier.internal.checkers.HierarchyChecker<T>
- All Implemented Interfaces:
Checker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CachedHashCodeInitializer<T> private final ClassProbe<T> private final Configuration<T> private final booleanprivate final booleanprivate final SubjectCreator<T> private final booleanprivate final booleanprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()private voidprivate <A,B extends A>
voidcheckMatchingValues(A superObject, B subObject, String which) private voidprivate voidprivate voidprivate voidcheckSuperProperties(T reference, Object equalSuper, T shallow) determineSubclass(T reference, InstanceFactory<? extends T> subclassFactory) private TgetEqualSub(T reference, Class<? extends T> subclass, InstanceFactory<? extends T> subclassFactory, String methodName) private ObjectgetEqualSuper(T reference) private voidsafelyCheckSuperProperties(T reference, T shallowScrambled)
-
Field Details
-
config
-
type
-
subjectCreator
-
classProbe
-
strictnessSuppressed
private final boolean strictnessSuppressed -
versionedEntity
private final boolean versionedEntity -
hasRedefinedSubclass
private final boolean hasRedefinedSubclass -
typeIsFinal
private final boolean typeIsFinal -
typeIsSealed
private final boolean typeIsSealed -
cachedHashCodeInitializer
-
-
Constructor Details
-
HierarchyChecker
-
-
Method Details
-
check
public void check() -
checkSuperclass
private void checkSuperclass() -
safelyCheckSuperProperties
-
checkSuperProperties
-
checkSubclass
private void checkSubclass() -
checkRedefinedSubclass
private void checkRedefinedSubclass() -
checkFinalEqualsMethod
private void checkFinalEqualsMethod() -
checkMatchingValues
-
determineSubclass
private Class<? extends T> determineSubclass(T reference, InstanceFactory<? extends T> subclassFactory) -
getEqualSub
-
getEqualSuper
-