public class Converters extends Object
| Constructor and Description |
|---|
Converters() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Converter<String,?> |
determine(Field field)
Determine the converter with the field type
|
static com.google.common.base.Converter<String,?> |
determine(Object genericObj)
Determine the converter with the object
|
static JavaTypeConverter |
determineCollectionConverter(ParameterizedType ptype)
Determine the collection type's converter
|
static com.google.common.base.Converter<String,?> |
determinePrimitiveConverter(Type type)
Determine the primitive type's converter
|
public static com.google.common.base.Converter<String,?> determine(Field field)
field - the fieldpublic static com.google.common.base.Converter<String,?> determine(Object genericObj)
genericObj - the generic objectpublic static com.google.common.base.Converter<String,?> determinePrimitiveConverter(Type type)
type - the primitive typepublic static JavaTypeConverter determineCollectionConverter(ParameterizedType ptype)
ptype - the ParameterizedTypeCopyright © 2017 Pivotal Software, Inc.. All rights reserved.