Class CompoundCoercion<S,​I,​T>

  • Type Parameters:
    S - The source (input) type
    I - The intermediate type
    T - The target (output) type
    All Implemented Interfaces:
    Coercion<S,​T>

    public class CompoundCoercion<S,​I,​T>
    extends java.lang.Object
    implements Coercion<S,​T>
    Combines two coercions to create a coercion through an intermediate type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T coerce​(S input)
      Converts an input value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • coerce

        public T coerce​(S input)
        Description copied from interface: Coercion
        Converts an input value.
        Specified by:
        coerce in interface Coercion<S,​I>
        Parameters:
        input - the input value
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object