Class FieldNameAndTypeMatcherStrategy

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String fieldName  
      private java.lang.Class<?> fieldType  
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldNameAndTypeMatcherStrategy​(java.lang.String fieldName, java.lang.Class<?> type)
      Constructor for FieldNameAndTypeMatcherStrategy.
    • 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()
      toString.
      • Methods inherited from class java.lang.Object

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

      • fieldName

        private final java.lang.String fieldName
      • fieldType

        private final java.lang.Class<?> fieldType
    • Constructor Detail

      • FieldNameAndTypeMatcherStrategy

        public FieldNameAndTypeMatcherStrategy​(java.lang.String fieldName,
                                               java.lang.Class<?> type)

        Constructor for FieldNameAndTypeMatcherStrategy.

        Parameters:
        fieldName - a String object.
        type - a Class object.
    • Method Detail

      • matches

        public boolean matches​(java.lang.reflect.Field field)
        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()

        toString.

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.