Package com.enonic.xp.convert

## Class Converters

- java.lang.Object
- - com.enonic.xp.convert.Converters

-     @PublicApi
      public final class Converters
      extends Object

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static <S,​T> T` | `convert​(S source, Class<T> toType)` |
    `static <S,​T> T` | `convertOrDefault​(S source, Class<T> toType, T defValue)` |
    `static <S,​T> T` | `convertOrNull​(S source, Class<T> toType)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### convert

          public static <S,​T> T convert​(S source,
                                              Class<T> toType)

    - #### convertOrNull

          public static <S,​T> T convertOrNull​(S source,
                                                    Class<T> toType)

    - #### convertOrDefault

          public static <S,​T> T convertOrDefault​(S source,
                                                       Class<T> toType,
                                                       T defValue)