org.springframework.data.redis.connection.convert
Class Converters

java.lang.Object
  extended by org.springframework.data.redis.connection.convert.Converters
Direct Known Subclasses:
JedisConverters, LettuceConverters, SrpConverters

public abstract class Converters
extends Object

Common type converters


Constructor Summary
Converters()
           
 
Method Summary
static Converter<Long,Boolean> longToBoolean()
           
static Converter<String,DataType> stringToDataType()
           
static Converter<String,Properties> stringToProps()
           
static byte[] toBit(Boolean source)
           
static Boolean toBoolean(Long source)
           
static DataType toDataType(String source)
           
static List<Object> toObjects(Set<RedisZSetCommands.Tuple> tuples)
           
static Properties toProperties(String source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converters

public Converters()
Method Detail

stringToProps

public static Converter<String,Properties> stringToProps()

longToBoolean

public static Converter<Long,Boolean> longToBoolean()

stringToDataType

public static Converter<String,DataType> stringToDataType()

toProperties

public static Properties toProperties(String source)

toBoolean

public static Boolean toBoolean(Long source)

toDataType

public static DataType toDataType(String source)

toBit

public static byte[] toBit(Boolean source)

toObjects

public static List<Object> toObjects(Set<RedisZSetCommands.Tuple> tuples)