Package 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 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
  Description
  `SpELItemKeyMapper(String keyExpression)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `K`
  `convert(V item)`

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

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

  ### Methods inherited from interface org.springframework.core.convert.converter.Converter

  `andThen`

- ## Constructor Details

  - ### SpELItemKeyMapper

    public SpELItemKeyMapper(String keyExpression)

- ## Method Details

  - ### convert

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