org.keycloak.connections.mongo.impl.types

## Class SimpleMapper<T>

- java.lang.Object
- - org.keycloak.connections.mongo.impl.types.SimpleMapper<T>

- All Implemented Interfaces:
    Mapper<T,T>

      public class SimpleMapper<T>
      extends Object
      implements Mapper<T,T>

  Just returns input
  Author:
    Marek Posolda

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleMapper(Class<T> expectedType)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `convertObject(MapperContext<T,T> context)` Convert object from one type to expected type
    `Class<T>` | `getExpectedReturnType()`
    `Class<? extends T>` | `getTypeOfObjectToConvert()`

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

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

- - ### Constructor Detail

    - #### SimpleMapper

          public SimpleMapper(Class<T> expectedType)

  - ### Method Detail

    - #### convertObject

          public T convertObject(MapperContext<T,T> context)

      Description copied from interface: `Mapper`
      Convert object from one type to expected type
      Specified by:
        `convertObject` in interface `Mapper<T,T>`
      Parameters:
        `context` - Encapsulates reference to converted object and other things, which might be helpful in conversion
      Returns:
        converted object

    - #### getTypeOfObjectToConvert

          public Class<? extends T> getTypeOfObjectToConvert()

      Specified by:
        `getTypeOfObjectToConvert` in interface `Mapper<T,T>`

    - #### getExpectedReturnType

          public Class<T> getExpectedReturnType()

      Specified by:
        `getExpectedReturnType` in interface `Mapper<T,T>`

Copyright © 2014. All Rights Reserved.