Package org.apache.tapestry5.commons.internal.services

## Class CompoundCoercion<S,​I,​T>

- java.lang.Object
- - org.apache.tapestry5.commons.internal.services.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.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CompoundCoercion​(Coercion<S,​I> op1, Coercion<I,​T> op2)` |

  - ### 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`

- - ### Constructor Detail

    - #### CompoundCoercion

          public CompoundCoercion​(Coercion<S,​I> op1,
                                  Coercion<I,​T> op2)

  - ### 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`