de.caff.generics.converter

## Class OverCaringTypeConverter<T,S>

- java.lang.Object
- - de.caff.generics.converter.OverCaringTypeConverter<T,S>

- All Implemented Interfaces:
    FragileTypeConverter<T,S>

      public class OverCaringTypeConverter<T,S>
      extends java.lang.Object
      implements FragileTypeConverter<T,S>

  A wrapper for a standard type converter, making it appear fragile.
  Author:
    Rammi

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OverCaringTypeConverter(java.util.function.Function<S,T> typeConverter)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `convert(S object)` Convert an object to another type.

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

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

- - ### Constructor Detail

    - #### OverCaringTypeConverter

          public OverCaringTypeConverter(java.util.function.Function<S,T> typeConverter)

      Constructor.
      Parameters:
        `typeConverter` - wrapped type converter

  - ### Method Detail

    - #### convert

          public T convert(S object)
                    throws TypeConverterException

      Convert an object to another type.
      Specified by:
        `convert` in interface `FragileTypeConverter<T,S>`
      Parameters:
        `object` - object to convert
      Returns:
        target object
      Throws:
        `TypeConverterException` - if an exception was thrown during conversion