org.springframework.data.redis.hash
Class DecoratingStringHashMapper<T>

java.lang.Object
  extended by org.springframework.data.redis.hash.DecoratingStringHashMapper<T>
All Implemented Interfaces:
HashMapper<T,String,String>

public class DecoratingStringHashMapper<T>
extends Object
implements HashMapper<T,String,String>

Delegating hash mapper used for flattening objects into Strings. Suitable when dealing with mappers that support Strings and type conversion.


Constructor Summary
DecoratingStringHashMapper(HashMapper<T,K,V> mapper)
           
 
Method Summary
 T fromHash(Map<String,String> hash)
           
 Map<String,String> toHash(T object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratingStringHashMapper

public DecoratingStringHashMapper(HashMapper<T,K,V> mapper)
Method Detail

fromHash

public T fromHash(Map<String,String> hash)
Specified by:
fromHash in interface HashMapper<T,String,String>

toHash

public Map<String,String> toHash(T object)
Specified by:
toHash in interface HashMapper<T,String,String>