Class PassThroughFromDocumentFieldValueConverter<F>
- java.lang.Object
-
- org.hibernate.search.engine.backend.types.converter.spi.PassThroughFromDocumentFieldValueConverter<F>
-
- All Implemented Interfaces:
FromDocumentFieldValueConverter<F,F>
public final class PassThroughFromDocumentFieldValueConverter<F> extends Object implements FromDocumentFieldValueConverter<F,F>
-
-
Constructor Summary
Constructors Constructor Description PassThroughFromDocumentFieldValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fconvert(F value, FromDocumentFieldValueConvertContext context)booleanisCompatibleWith(FromDocumentFieldValueConverter<?,?> other)
-
-
-
Method Detail
-
convert
public F convert(F value, FromDocumentFieldValueConvertContext context)
- Specified by:
convertin interfaceFromDocumentFieldValueConverter<F,F>- Parameters:
value- The index field value to convert.context- A context that can beextendedto a more useful type, giving access to such things as a Hibernate ORM Session (if using the Hibernate ORM mapper).- Returns:
- The converted value.
-
isCompatibleWith
public boolean isCompatibleWith(FromDocumentFieldValueConverter<?,?> other)
- Specified by:
isCompatibleWithin interfaceFromDocumentFieldValueConverter<F,F>- Parameters:
other- AnotherToDocumentFieldValueConverter, nevernull.- Returns:
trueif the given object behaves exactly the same as this object, i.e. itsFromDocumentFieldValueConverter.convert(Object, FromDocumentFieldValueConvertContext)method is guaranteed to always return the same value as this object's when given the same input.falseotherwise, or when in doubt.
-
-