com.hammurapi.common

## Class SimpleObservableConverter<T>

- java.lang.Object
- - com.hammurapi.common.SimpleObservableConverter<T>

- Type Parameters:
    `T` -
  All Implemented Interfaces:
    ObservableConverter<T>

      public class SimpleObservableConverter<T>
      extends Object
      implements ObservableConverter<T>

  Converts argument to com.hammurapi.common.Observable. If argument is instance of com.hammurapi.common.Observable, it is returned as is. If argument is instance of java.util.Observable, it is adapted to com.hammurapi.common.Observable. If argument is instance of com.hammurapi.common.Adaptable, then its getAdapter() method is invoked to get com.hammurapi.common.Observable adapter.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleObservableConverter()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Observable<T>` | `convert(T obj)` Converts object to observable.

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

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

- - ### Constructor Detail

    - #### SimpleObservableConverter

          public SimpleObservableConverter()

  - ### Method Detail

    - #### convert

          public Observable<T> convert(T obj)

      Description copied from interface: `ObservableConverter`
      Converts object to observable.
      Specified by:
        `convert` in interface `ObservableConverter<T>`
      Parameters:
        `obj` -
      Returns:
        Observable or null if argument cannot be converted to observable.