Class OptionalLongValueExtractor
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.extractor.builtin.impl.OptionalLongValueExtractor
-
- All Implemented Interfaces:
ContainerExtractor<OptionalLong,Long>
public class OptionalLongValueExtractor extends Object implements ContainerExtractor<OptionalLong,Long>
-
-
Constructor Summary
Constructors Constructor Description OptionalLongValueExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,C2>
voidextract(OptionalLong container, ValueProcessor<T,? super Long,C2> perValueProcessor, T target, C2 context, ContainerExtractionContext extractionContext)booleanmultiValued()StringtoString()
-
-
-
Method Detail
-
extract
public <T,C2> void extract(OptionalLong container, ValueProcessor<T,? super Long,C2> perValueProcessor, T target, C2 context, ContainerExtractionContext extractionContext)
- Specified by:
extractin interfaceContainerExtractor<OptionalLong,Long>- Type Parameters:
T- The type of thetargetof theperValueProcessor, i.e. whatever it is supposed to push the result of its processing to.C2- The type of thecontextof theperValueProcessor, i.e. whatever information it needs that is independent from the target or value.- Parameters:
container- A container to extract values from.perValueProcessor- A processor for values extracted from the container.target- The target to pass to theperValueProcessor.context- The context to pass to theperValueProcessor.extractionContext- A context for use by the container extractor itself.
-
multiValued
public boolean multiValued()
- Specified by:
multiValuedin interfaceContainerExtractor<OptionalLong,Long>- Returns:
trueif this extractor'sContainerExtractor.extract(Object, ValueProcessor, Object, Object, ContainerExtractionContext)method may call the consumer multiple times.falseif it will always call theconsumereither zero or one time for a given container.
-
-