ConverterFactory

org.beangle.commons.conversion.impl.ConverterFactory
abstract class ConverterFactory[S, R] extends GenericConverter

A converter factory that can convert objects from S to subtypes of R.

Value parameters

<

R> The target base

Attributes

Since

3.2.0

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MapConverterFactory.type
object DateConverter.type
object EnumConverters.type
object JavaEnumConverters.type
object NumberConverters.type
object TemporalConverter.type
Show all

Members list

Value members

Concrete methods

override def convert[T](input: Any, targetType: Class[T]): T

Attributes

Definition Classes
def getConverter[T](targetType: Class[T]): Option[Converter[S, T]]

Return convert from S to T

Return convert from S to T

Attributes

override def getTypeinfo: (Class[_], Class[_])

Attributes

Definition Classes
protected def register(targetType: Class[_], converter: Converter[S, _]): Unit

Concrete fields

protected val converters: HashMap[Class[_], Converter[S, _]]