Class EnumCoercer<T extends java.lang.Enum>

  • All Implemented Interfaces:
    java.util.function.Function<java.lang.reflect.Type,​java.util.function.BiFunction<JsonInput,​PropertySetting,​T>>, java.util.function.Predicate<java.lang.Class<?>>

    public class EnumCoercer<T extends java.lang.Enum>
    extends TypeCoercer<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      EnumCoercer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.function.BiFunction<JsonInput,​PropertySetting,​T> apply​(java.lang.reflect.Type type)  
      boolean test​(java.lang.Class<?> aClass)  
      • 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.Function

        andThen, compose
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • EnumCoercer

        public EnumCoercer()
    • Method Detail

      • test

        public boolean test​(java.lang.Class<?> aClass)
        Specified by:
        test in interface java.util.function.Predicate<T extends java.lang.Enum>
        Specified by:
        test in class TypeCoercer<T extends java.lang.Enum>
      • apply

        public java.util.function.BiFunction<JsonInput,​PropertySetting,​T> apply​(java.lang.reflect.Type type)
        Specified by:
        apply in interface java.util.function.Function<java.lang.reflect.Type,​java.util.function.BiFunction<JsonInput,​PropertySetting,​T extends java.lang.Enum>>
        Specified by:
        apply in class TypeCoercer<T extends java.lang.Enum>