- Type Parameters:
T
- the type that should be extracted
- All Superinterfaces:
SQLExtractor<T>
- All Known Implementing Classes:
Extractors.ListExtractor
,Extractors.PrimitiveExtractor
,Extractors.RawExtractor
public interface RedisExtractor<T> extends SQLExtractor<T>
A specific type of extractor used by the utility class
Extractors
to filter registered extractors and create new instances based on the
given type;-
Method Summary
Modifier and Type Method Description boolean
accept(java.lang.Class<?> cls)
Retrieves whether this extractor can handle the given type.<E> RedisExtractor<E>
newInstance(java.lang.Class<E> cls)
Creates a new extractor based on the given type.
-
Method Details
-
accept
boolean accept(java.lang.Class<?> cls)Retrieves whether this extractor can handle the given type.- Parameters:
cls
- a class instance specifying the type that should be extracted.- Returns:
true
if accepted, otherwisefalse
-
newInstance
Creates a new extractor based on the given type.- Type Parameters:
E
- the next return type- Parameters:
cls
- a class instance specifying the type that should be extracted.- Returns:
- a new RedisExtractor instance for the given type
-