public class DecoratingStringHashMapper<T> extends Object implements HashMapper<T,String,String>
Constructor and Description |
---|
DecoratingStringHashMapper(HashMapper<T,?,?> mapper) |
Modifier and Type | Method and Description |
---|---|
T |
fromHash(Map hash)
Convert a
hash (map) to an object. |
Map<String,String> |
toHash(T object)
Convert an
object to a map that can be used with Redis hashes. |
public DecoratingStringHashMapper(HashMapper<T,?,?> mapper)
public T fromHash(Map hash)
HashMapper
hash
(map) to an object.fromHash
in interface HashMapper<T,String,String>
public Map<String,String> toHash(T object)
HashMapper
object
to a map that can be used with Redis hashes.toHash
in interface HashMapper<T,String,String>
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.