public class ElSimpleConvertMap extends Object
| Constructor and Description |
|---|
ElSimpleConvertMap()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<F,T> void |
add(Class<F> from,
Class<T> to,
ElSimpleConverter<F,T> conv)
Specifies the correct converter by the given source and destiny clases
for the convertion.
|
void |
addAll(ElSimpleConvertMap convMap)
Adds all the converters defined in the given simple converter map to this
object.
|
<F,T> ElSimpleConverter<F,T> |
get(Class<F> from,
Class<T> to)
Gets the correct converter (if it exists) by the given source and destiny
clases for the convertion.
|
public <F,T> ElSimpleConverter<F,T> get(Class<F> from, Class<T> to)
F - The type of the from class.T - The type of the to class.from - The source class for the convertion.to - The destiny class for the convertion.public <F,T> void add(Class<F> from, Class<T> to, ElSimpleConverter<F,T> conv)
F - The type of the from class.T - The type of the to class.from - The source class for the convertion.to - The destiny class for the convertion.conv - The converter to be added.public void addAll(ElSimpleConvertMap convMap)
convMap - The converter map whos children will be added to this
converter.Copyright © 2015–2017 Bridje Framework. All rights reserved.