@Singleton public class CharSequencePropertyNamingStrategyConverter extends Object implements TypeConverter<CharSequence,com.fasterxml.jackson.databind.PropertyNamingStrategy>
PropertyNamingStrategy
instance.Constructor and Description |
---|
CharSequencePropertyNamingStrategyConverter() |
Modifier and Type | Method and Description |
---|---|
Optional<com.fasterxml.jackson.databind.PropertyNamingStrategy> |
convert(CharSequence charSequence,
Class<com.fasterxml.jackson.databind.PropertyNamingStrategy> targetType,
ConversionContext context)
Converts from the given source object type to the target type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, of
public CharSequencePropertyNamingStrategyConverter()
public Optional<com.fasterxml.jackson.databind.PropertyNamingStrategy> convert(CharSequence charSequence, Class<com.fasterxml.jackson.databind.PropertyNamingStrategy> targetType, ConversionContext context)
TypeConverter
Optional.empty()
in case the object is not convertible by catching any necessary exceptions and failing gracefully.convert
in interface TypeConverter<CharSequence,com.fasterxml.jackson.databind.PropertyNamingStrategy>
charSequence
- The object typetargetType
- The target type being converted tocontext
- The ConversionContext