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 F
convert(F value, ToDocumentFieldValueConvertContext context)
boolean
isCompatibleWith(ToDocumentFieldValueConverter<?,?> other)
-
-
-
Method Detail
-
convert
public F convert(F value, ToDocumentFieldValueConvertContext context)
- Specified by:
convert
in interfaceToDocumentFieldValueConverter<F,F>
- Parameters:
value
- The source value to convert.context
- A context that can beextended
to 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:
isCompatibleWith
in interfaceToDocumentFieldValueConverter<F,F>
- Parameters:
other
- AnotherToDocumentFieldValueConverter
, nevernull
.- Returns:
true
if 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.false
otherwise, or when in doubt.
-
-