D - Type of represented descriptorT - Type of unguarded formpublic class ParseCustomToUnguarded<D extends Descriptor,T extends Serializable> extends Object implements Function<String,ParsedUnguardedResult<T>>
Descriptors from Strings optionally with IDs.
The parser processes textual lines to create descriptors.| Constructor and Description |
|---|
ParseCustomToUnguarded(Function<String,String> descSplitter,
Function<String,String> idSplitter,
DescriptorGenerator<D> generator,
UnguardedExtractor<D,T> extractor)
Construct new instance.
|
public ParseCustomToUnguarded(Function<String,String> descSplitter, Function<String,String> idSplitter, DescriptorGenerator<D> generator, UnguardedExtractor<D,T> extractor)
descSplitter - Function to extract the descriptors String representationidSplitter - Function to extract the IDsgenerator - DescriptorGenerator to parse the descriptors String representationextractor - UnguardedExtractor to extract unguarded form from parsed descriptorspublic ParsedUnguardedResult<T> apply(String input)
apply in interface Function<String,ParsedUnguardedResult<T extends Serializable>>