public abstract class GeneratedObjectBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fromAutoMapping |
protected MapperFacade |
mapperFacade |
protected Converter<Object,Object>[] |
usedConverters |
protected Filter<Object,Object>[] |
usedFilters |
protected BoundMapperFacade<Object,Object>[] |
usedMapperFacades |
protected Type<?>[] |
usedTypes |
| Constructor and Description |
|---|
GeneratedObjectBase() |
| Modifier and Type | Method and Description |
|---|---|
protected static List<Object> |
asList(boolean[] iterable) |
protected static List<Object> |
asList(byte[] iterable) |
protected static List<Object> |
asList(char[] iterable) |
protected static List<Object> |
asList(double[] iterable) |
protected static List<Object> |
asList(float[] iterable) |
protected static List<Object> |
asList(int[] iterable) |
protected static <T> List<T> |
asList(Iterable<T> iterable) |
protected static List<Object> |
asList(long[] iterable) |
protected static List<Object> |
asList(Object[] iterable) |
protected static List<Object> |
asList(short[] iterable) |
static boolean[] |
booleanArray(Collection<Boolean> collection) |
static byte[] |
byteArray(Collection<Byte> collection) |
static char[] |
charArray(Collection<Character> collection) |
static double[] |
doubleArray(Collection<Double> collection) |
static float[] |
floatArray(Collection<Float> collection) |
static int[] |
intArray(Collection<Integer> collection) |
boolean |
isFromAutoMapping() |
static Object |
listToArray(List<?> list,
Class<?> arrayClass)
Function to help with list to Array conversion to support Javassist
|
static void |
listToArray(List<?> list,
Object[] array)
Function to help with list to Array conversion to support Javassist
|
static <K,V> Map<K,V> |
listToMap(List<?> entries,
Class<?> mapClass)
Function to help with list to Map conversion to support Javassist;
|
static <K,V> void |
listToMap(List<?> entries,
Map<K,V> map)
Function to help with list to Map conversion to support Javassist;
|
static long[] |
longArray(Collection<Long> collection) |
protected void |
mapArray(boolean[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext) |
protected void |
mapArray(byte[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext) |
protected void |
mapArray(char[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext) |
protected void |
mapArray(double[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext) |
protected void |
mapArray(float[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext) |
protected void |
mapArray(int[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext) |
protected void |
mapArray(long[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext) |
protected void |
mapArray(short[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext) |
protected int |
min(int[] sizes) |
void |
setFromAutoMapping(boolean fromAutoMapping) |
void |
setMapperFacade(MapperFacade mapper) |
void |
setUsedConverters(Converter<Object,Object>[] usedConverters) |
void |
setUsedFilters(Filter<Object,Object>[] usedFilters) |
void |
setUsedMapperFacades(BoundMapperFacade<Object,Object>[] usedMapperFacades) |
void |
setUsedTypes(Type<Object>[] types) |
static short[] |
shortArray(Collection<Short> collection) |
protected Type<?>[] usedTypes
protected BoundMapperFacade<Object,Object>[] usedMapperFacades
protected MapperFacade mapperFacade
protected boolean fromAutoMapping
public void setMapperFacade(MapperFacade mapper)
public void setUsedMapperFacades(BoundMapperFacade<Object,Object>[] usedMapperFacades)
public boolean isFromAutoMapping()
public void setFromAutoMapping(boolean fromAutoMapping)
protected int min(int[] sizes)
protected void mapArray(byte[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext)
protected void mapArray(boolean[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext)
protected void mapArray(char[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext)
protected void mapArray(short[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext)
protected void mapArray(int[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext)
protected void mapArray(long[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext)
protected void mapArray(float[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext)
protected void mapArray(double[] destination,
List<Object> source,
Class<?> clazz,
MappingContext mappingContext)
public static boolean[] booleanArray(Collection<Boolean> collection)
public static byte[] byteArray(Collection<Byte> collection)
public static char[] charArray(Collection<Character> collection)
public static short[] shortArray(Collection<Short> collection)
public static int[] intArray(Collection<Integer> collection)
public static long[] longArray(Collection<Long> collection)
public static float[] floatArray(Collection<Float> collection)
public static double[] doubleArray(Collection<Double> collection)
public static void listToArray(List<?> list, Object[] array)
list - the list to convertarray - the array to receive the elements of the listpublic static Object listToArray(List<?> list, Class<?> arrayClass)
list - the list to convertarrayClass - the array type to constructpublic static <K,V> Map<K,V> listToMap(List<?> entries, Class<?> mapClass)
entries - a list of Map.EntrymapClass - the type of Map to instantiateCopyright © 2016 Glasnost. All rights reserved.