Package io.lettuce.core.dynamic.codec
Class AnnotationRedisCodecResolver.ParameterWrappers
- java.lang.Object
-
- io.lettuce.core.dynamic.codec.AnnotationRedisCodecResolver.ParameterWrappers
-
- Enclosing class:
- AnnotationRedisCodecResolver
protected static class AnnotationRedisCodecResolver.ParameterWrappers extends Object
Parameter wrapper support for types that encapsulate one or more parameter values.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParameterWrappers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeInformation<?>
getKeyType(TypeInformation<?> typeInformation)
static TypeInformation<?>
getValueType(TypeInformation<?> typeInformation)
static boolean
hasKeyType(TypeInformation<?> typeInformation)
static boolean
hasValueType(TypeInformation<?> typeInformation)
static boolean
supports(TypeInformation<?> typeInformation)
-
-
-
Method Detail
-
supports
public static boolean supports(TypeInformation<?> typeInformation)
- Parameters:
typeInformation
- must not benull
.- Returns:
true
ifparameterClass
is a parameter wrapper.
-
hasKeyType
public static boolean hasKeyType(TypeInformation<?> typeInformation)
- Parameters:
typeInformation
- must not benull
.- Returns:
true
if the type has a key type variable.
-
hasValueType
public static boolean hasValueType(TypeInformation<?> typeInformation)
- Parameters:
typeInformation
- must not benull
.- Returns:
true
if the type has a value type variable.
-
getKeyType
public static TypeInformation<?> getKeyType(TypeInformation<?> typeInformation)
- Parameters:
typeInformation
- must not benull
.- Returns:
- the key type.
-
getValueType
public static TypeInformation<?> getValueType(TypeInformation<?> typeInformation)
- Parameters:
typeInformation
- must not benull
.- Returns:
- the value type.
-
-