org.springframework.batch.item

## Class SpELItemKeyMapper<K,V>

- java.lang.Object
- - org.springframework.batch.item.SpELItemKeyMapper<K,V>

- All Implemented Interfaces:
    org.springframework.core.convert.converter.Converter<V,K>

      public class SpELItemKeyMapper<K,V>
      extends java.lang.Object
      implements org.springframework.core.convert.converter.Converter<V,K>

  An implementation of `Converter` that uses SpEL to map a Value to a key
  Since:
    2.2
  Author:
    David Turanski

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SpELItemKeyMapper(java.lang.String keyExpression)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `K` | `convert(V item)`

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

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

- - ### Constructor Detail

    - #### SpELItemKeyMapper

          public SpELItemKeyMapper(java.lang.String keyExpression)

  - ### Method Detail

    - #### convert

          public K convert(V item)

      Specified by:
        `convert` in interface `org.springframework.core.convert.converter.Converter<V,K>`