Class FieldTypeMatcherStrategy

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Class<?> expectedFieldType  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.reflect.Field field)
      A field matcher that checks if a field matches a given criteria.
      void notFound​(java.lang.Class<?> type, boolean isInstanceField)
      Throws an FieldNotFoundException if the strategy criteria could not be found.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • expectedFieldType

        final java.lang.Class<?> expectedFieldType
    • Constructor Detail

      • FieldTypeMatcherStrategy

        public FieldTypeMatcherStrategy​(java.lang.Class<?> fieldType)
    • Method Detail

      • matches

        public boolean matches​(java.lang.reflect.Field field)
        Description copied from class: FieldMatcherStrategy
        A field matcher that checks if a field matches a given criteria.
        Specified by:
        matches in class FieldMatcherStrategy
        Parameters:
        field - The field to check whether it matches the strategy or not.
        Returns:
        true if this field matches the strategy, false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object