public class BeanUtilsHashMapper<T> extends Object implements HashMapper<T,String,String>
Constructor and Description |
---|
BeanUtilsHashMapper(Class<T> type)
Create a new
BeanUtilsHashMapper for the given type . |
public BeanUtilsHashMapper(Class<T> type)
BeanUtilsHashMapper
for the given type
.type
- must not be null.public T fromHash(Map<String,String> 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–2019 Pivotal Software, Inc.. All rights reserved.