Class JpaLazyGetterFieldCheck<T>

java.lang.Object
nl.jqno.equalsverifier.internal.checkers.fieldchecks.JpaLazyGetterFieldCheck<T>
All Implemented Interfaces:
FieldCheck<T>

public class JpaLazyGetterFieldCheck<T> extends Object implements FieldCheck<T>
  • Field Details

    • subjectCreator

      private final SubjectCreator<T> subjectCreator
    • type

      private final Class<T> type
    • classProbe

      private final ClassProbe<T> classProbe
    • annotationCache

      private final AnnotationCache annotationCache
    • fieldnameToGetter

      private final Function<String,String> fieldnameToGetter
    • strictHashcode

      private final boolean strictHashcode
  • Constructor Details

    • JpaLazyGetterFieldCheck

      public JpaLazyGetterFieldCheck(Context<T> context)
  • Method Details

    • execute

      public void execute(FieldProbe fieldProbe)
      Specified by:
      execute in interface FieldCheck<T>
    • fieldIsUsed

      private boolean fieldIsUsed(Field field, boolean forEquals)
    • fieldIsLazy

      private boolean fieldIsLazy(String fieldName)
    • throwingGetterCreator

      private Class<T> throwingGetterCreator(String getterName)
    • assertEntity

      private void assertEntity(String fieldDisplayName, String method, String getterName, boolean assertion)