Class FallbackStringToObjectConverter.IsFactoryConstructor

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

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

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(java.lang.reflect.Constructor<?> constructor)  
      • 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

      • IsFactoryConstructor

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

      • test

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