public final class PassThroughToDocumentFieldValueConverter<F> extends Object implements ToDocumentFieldValueConverter<F,F>
| Constructor and Description |
|---|
PassThroughToDocumentFieldValueConverter() |
| Modifier and Type | Method and Description |
|---|---|
F |
convert(F value,
ToDocumentFieldValueConvertContext context) |
boolean |
isCompatibleWith(ToDocumentFieldValueConverter<?,?> other) |
public PassThroughToDocumentFieldValueConverter()
public F convert(F value, ToDocumentFieldValueConvertContext context)
convert in interface ToDocumentFieldValueConverter<F,F>value - The source value to convert.context - A context that can be
extended
to a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).public boolean isCompatibleWith(ToDocumentFieldValueConverter<?,?> other)
isCompatibleWith in interface ToDocumentFieldValueConverter<F,F>other - Another ToDocumentFieldValueConverter, never null.true if the given object behaves exactly the same as this object,
i.e. its ToDocumentFieldValueConverter.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.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.