Class FallbackStringToObjectConverter.IsFactoryMethod

  • All Implemented Interfaces:
    java.util.function.Predicate<java.lang.reflect.Method>
    Enclosing class:
    FallbackStringToObjectConverter

    static class FallbackStringToObjectConverter.IsFactoryMethod
    extends java.lang.Object
    implements java.util.function.Predicate<java.lang.reflect.Method>
    Predicate that determines if the Method supplied to test(Method) is a non-private static factory method for the supplied targetType.
    • Field Summary

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

      Constructors 
      Constructor Description
      IsFactoryMethod​(java.lang.Class<?> targetType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(java.lang.reflect.Method method)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Field Detail

      • targetType

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

      • IsFactoryMethod

        IsFactoryMethod​(java.lang.Class<?> targetType)
    • Method Detail

      • test

        public boolean test​(java.lang.reflect.Method method)
        Specified by:
        test in interface java.util.function.Predicate<java.lang.reflect.Method>