com.hammurapi.convert

## Class AtomicConverterBase<S,T>

- java.lang.Object
- - com.hammurapi.convert.AtomicConverterBase<S,T>

- All Implemented Interfaces:
    AtomicConverter<S,T>

      public abstract class AtomicConverterBase<S,T>
      extends Object
      implements AtomicConverter<S,T>

  Base class for atomic converters.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Class<S>` | `sourceType`
    `protected Class<T>` | `targetType`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AtomicConverterBase(Class<S> sourceType, Class<T> targetType)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Class<S>` | `getSourceType()`
    `Class<T>` | `getTargetType()`
    `String` | `toString()`

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

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

    - ### Methods inherited from interface com.hammurapi.convert.AtomicConverter

      `convert`

- - ### Field Detail

    - #### sourceType

          protected Class<S> sourceType

    - #### targetType

          protected Class<T> targetType

  - ### Constructor Detail

    - #### AtomicConverterBase

          public AtomicConverterBase(Class<S> sourceType,
                             Class<T> targetType)

  - ### Method Detail

    - #### getSourceType

          public Class<S> getSourceType()

      Specified by:
        `getSourceType` in interface `AtomicConverter<S,T>`
      Returns:
        Type which converter converts from.

    - #### getTargetType

          public Class<T> getTargetType()

      Specified by:
        `getTargetType` in interface `AtomicConverter<S,T>`
      Returns:
        Type which converter converts to.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`