D
- Type of represented descriptorT
- Type of unguarded formpublic class ParseStructureRecordToUnguarded<D extends Descriptor,T extends Serializable> extends Object implements Function<StructureRecord,ParsedUnguardedResult<T>>
Descriptor
s from Molecule sources represented as StructureRecord
s optionally with IDs.Constructor and Description |
---|
ParseStructureRecordToUnguarded(Function<StructureRecord,String> retrieveIdOrNull,
StandardizerWrapper standardizer,
DescriptorGenerator<D> generator,
UnguardedExtractor<D,T> extractor)
Construct new instance.
|
Modifier and Type | Method and Description |
---|---|
ParsedUnguardedResult<T> |
apply(StructureRecord input) |
public ParseStructureRecordToUnguarded(Function<StructureRecord,String> retrieveIdOrNull, StandardizerWrapper standardizer, DescriptorGenerator<D> generator, UnguardedExtractor<D,T> extractor)
retrieveIdOrNull
- Retriever for IDs or null
standardizer
- Standardizer before descriptor generationgenerator
- DescriptorGenerator
to parse the descriptors String representationextractor
- UnguardedExtractor
to extract unguarded form from parsed descriptorspublic ParsedUnguardedResult<T> apply(StructureRecord input)
apply
in interface Function<StructureRecord,ParsedUnguardedResult<T extends Serializable>>