@Deprecated public class JacksonHashMapper<T> extends Object implements HashMapper<T,String,Object>
HashMapper
based on Jackson library. Supports nested properties (rich objects).Constructor and Description |
---|
JacksonHashMapper(Class<T> type)
Deprecated.
Creates new
JacksonHashMapper . |
JacksonHashMapper(Class<T> type,
org.codehaus.jackson.map.ObjectMapper mapper)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
T |
fromHash(Map<String,Object> hash)
Deprecated.
Convert a
hash (map) to an object. |
Map<String,Object> |
toHash(T object)
Deprecated.
Convert an
object to a map that can be used with Redis hashes. |
public JacksonHashMapper(Class<T> type)
JacksonHashMapper
.type
- public T fromHash(Map<String,Object> hash)
HashMapper
hash
(map) to an object.fromHash
in interface HashMapper<T,String,Object>
public Map<String,Object> toHash(T object)
HashMapper
object
to a map that can be used with Redis hashes.toHash
in interface HashMapper<T,String,Object>
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.