org.apache.tapestry5.ioc.services

## Interface Coercion<S,T>

- Type Parameters:
    `S` - the source type (input)
    `T` - the target type (output)
  All Known Implementing Classes:
    CompoundCoercion, StringToEnumCoercion, StringToJSONArray, StringToJSONObject

      public interface Coercion<S,T>

  Responsible for converting from one type to another. This is used primarily around component parameters.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `coerce(S input)` Converts an input value.

- - ### Method Detail

    - #### coerce

          T coerce(S input)

      Converts an input value.
      Parameters:
        `input` - the input value

5.6.0 - Copyright © 2003-2020 The Apache Software Foundation.