public abstract class Converter
extends java.lang.Object
Constructor and Description |
---|
Converter() |
Modifier and Type | Method and Description |
---|---|
static <C extends Converter> |
build(java.lang.Class<C> converterType) |
static <C extends Converter> |
buildClass(java.lang.Class<C> converterType) |
protected java.lang.IllegalArgumentException |
conversionNotSupported(java.lang.Object fromValue,
java.lang.Class fromType,
java.lang.Class toType) |
abstract <T> T |
convert(boolean from,
java.lang.Class<T> toType) |
abstract <T> T |
convert(byte from,
java.lang.Class<T> toType) |
abstract <T> T |
convert(char from,
java.lang.Class<T> toType) |
abstract <T> T |
convert(double from,
java.lang.Class<T> toType) |
abstract <T> T |
convert(float from,
java.lang.Class<T> toType) |
abstract <T> T |
convert(int from,
java.lang.Class<T> toType) |
abstract <T> T |
convert(long from,
java.lang.Class<T> toType) |
abstract <T> T |
convert(java.lang.Object from,
java.lang.Class<T> toType) |
abstract <T> T |
convert(short from,
java.lang.Class<T> toType) |
public static <C extends Converter> C build(java.lang.Class<C> converterType)
converterType
- type of converter to generatejava.lang.IllegalArgumentException
- if converter doesn't a no-arg constructorpublic static <C extends Converter> java.lang.Class<? extends C> buildClass(java.lang.Class<C> converterType)
converterType
- type of converter to generatepublic abstract <T> T convert(java.lang.Object from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedpublic abstract <T> T convert(byte from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedpublic abstract <T> T convert(short from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedpublic abstract <T> T convert(int from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedpublic abstract <T> T convert(long from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedpublic abstract <T> T convert(float from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedpublic abstract <T> T convert(double from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedpublic abstract <T> T convert(boolean from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedpublic abstract <T> T convert(char from, java.lang.Class<T> toType)
java.lang.IllegalArgumentException
- if conversion is not supportedprotected java.lang.IllegalArgumentException conversionNotSupported(java.lang.Object fromValue, java.lang.Class fromType, java.lang.Class toType)
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.