com.holonplatform.vaadin.data.container

## Interface ItemAdapter<ITEM>

- Type Parameters:
    `ITEM` - Data source item data type
  All Superinterfaces:
    Serializable

      public interface ItemAdapter<ITEM>
      extends Serializable

  Adapter to convert data source item data type to a container `Item` and back.
  Since:
    5.0.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.vaadin.data.Item` | `adapt(ItemDataSource.Configuration<?> configuration, ITEM item)` Convert item data into a container `Item`.
    `ITEM` | `restore(ItemDataSource.Configuration<?> configuration, com.vaadin.data.Item item)` Restore item data from given container item.

- - ### Method Detail

    - #### adapt

          com.vaadin.data.Item adapt(ItemDataSource.Configuration<?> configuration,
                                     ITEM item)

      Convert item data into a container `Item`.
      Parameters:
        `configuration` - Data source configuration
        `item` - Item data to convert
      Returns:
        Container Item

    - #### restore

          ITEM restore(ItemDataSource.Configuration<?> configuration,
                       com.vaadin.data.Item item)

      Restore item data from given container item.
      Parameters:
        `configuration` - Data source configuration
        `item` - Container item
      Returns:
        Item data

Copyright © 2017 The Holon Platform. All rights reserved.