public final class PropertyExtractors extends Object
Modifier and Type | Method and Description |
---|---|
static PropertyExtractor |
extractorFromCliParam(CliParam cliParam)
Create an extractor from the
CliParam spec. |
static Map<String,PropertyExtractor> |
extractorsFromCliParams(List<CliParam> cliParams)
Create extractors from multiple
CliParam specs. |
static boolean |
isTypeNumeric(Class type)
Check if a type is numeric.
|
static <T> MasterStorages.MasterStorageBuilder<T> |
storageBuilderForType(Class<T> type)
Create a storage builder for an extracted type.
|
public static <T> MasterStorages.MasterStorageBuilder<T> storageBuilderForType(Class<T> type)
T
- Extracted typetype
- Extracted typepublic static boolean isTypeNumeric(Class type)
type
- Extracted typetrue
when the given type is numericpublic static PropertyExtractor extractorFromCliParam(CliParam cliParam)
CliParam
spec.cliParam
- Extractor specificationpublic static Map<String,PropertyExtractor> extractorsFromCliParams(List<CliParam> cliParams)
CliParam
specs.cliParams
- specsMap
of CliParam.name
to created PropertyExtractor
instances