public class ConvertUtil extends Object
| 构造器和说明 |
|---|
ConvertUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[][] |
toArray(org.springframework.data.redis.serializer.RedisSerializer serializer,
String... keys)
转为字节数组
|
static <T> Map<T,org.springframework.data.geo.Point> |
toMap(org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<T>> results)
转换为字典
|
static <T> Map<Double,T> |
toMap(Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<T>> set)
将TypedTuple类型的集合转为字典
|
static <T> Map<Double,T> |
toMap(T... values)
将对象转为字典
|
static <T> Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<T>> |
toTypedTupleSet(Map<Double,T> map)
将字典转为TypedTuple类型的集合
|
public static byte[][] toArray(org.springframework.data.redis.serializer.RedisSerializer serializer,
String... keys)
keys - 键public static <T> Map<T,org.springframework.data.geo.Point> toMap(org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<T>> results)
T - 类型results - 结果集public static <T> Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<T>> toTypedTupleSet(Map<Double,T> map)
T - 对象类型map - 字典public static <T> Map<Double,T> toMap(Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<T>> set)
T - 对象类型set - TypedTuple类型的集合@SafeVarargs public static <T> Map<Double,T> toMap(T... values)
T - 对象类型values - 对象Copyright © 2019. All rights reserved.