public class LanguageCodeConverter extends org.dozer.DozerConverter<java.lang.String,com.neovisionaries.i18n.LanguageCode>
Intermediate converter used to convert String
to LanguageCode
while mapping a single value to a collection using custom add..() method.
Constructor and Description |
---|
LanguageCodeConverter() |
LanguageCodeConverter(java.lang.Class<java.lang.String> prototypeA,
java.lang.Class<com.neovisionaries.i18n.LanguageCode> prototypeB) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertFrom(com.neovisionaries.i18n.LanguageCode source,
java.lang.String destination) |
com.neovisionaries.i18n.LanguageCode |
convertTo(java.lang.String source,
com.neovisionaries.i18n.LanguageCode destination) |
public LanguageCodeConverter()
public LanguageCodeConverter(java.lang.Class<java.lang.String> prototypeA, java.lang.Class<com.neovisionaries.i18n.LanguageCode> prototypeB)
public java.lang.String convertFrom(com.neovisionaries.i18n.LanguageCode source, java.lang.String destination)
convertFrom
in class org.dozer.DozerConverter<java.lang.String,com.neovisionaries.i18n.LanguageCode>
public com.neovisionaries.i18n.LanguageCode convertTo(java.lang.String source, com.neovisionaries.i18n.LanguageCode destination)
convertTo
in class org.dozer.DozerConverter<java.lang.String,com.neovisionaries.i18n.LanguageCode>
Copyright © 2014-2018 Konik.io. All Rights Reserved.