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