@FunctionalInterface public interface ValueConverter extends Converter<Object,String>, WithPriority, Validateable, ConfigurationAware
Any converter may validate itself - see also Validateable
. The
validation is performed before a MustacheEngine
is
built. An invalid converter is not put into service, i.e. it's not included
in the final list of converters returned by
Configuration.getValueConverters()
.
This component has also a priority - converters with higher priority are
called first, and is ConfigurationAware
.
If no component is able to convert an object, Object.toString()
is
used.
DEFAULT_PRIORITY
getPriority
isValid
getConfigurationKeys, init
Copyright © 2017. All rights reserved.