Class AbstractCoercer<T>

    • Constructor Detail

      • AbstractCoercer

        public AbstractCoercer​(Class toType)
    • Method Detail

      • coerce

        public final T coerce​(Object input)
        Description copied from interface: Coercer
        Convert the given object into the coercer type. The input is assumed to be non-null.
        Specified by:
        coerce in interface Coercer<T>
      • getToType

        public final Class<T> getToType()
        Description copied from interface: Coercer
        Returns the type this coercer handles
        Specified by:
        getToType in interface Coercer<T>
      • doCoerce

        protected abstract T doCoerce​(Object input)