Class 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 
      ConstructorDescription
      SpELItemKeyMapper​(java.lang.String keyExpression) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      Kconvert​(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<K,​V>