private static Type getSourceType(GetterFactory<?, ?> getterFactory) { Type[] types = TypeHelper.getGenericParameterForClass(getterFactory.getClass(), GetterFactory.class); return types != null ? types[0] : null; } }
private static Type getTargetType(SetterFactory<?, ?> setterFactory) { Type[] types = TypeHelper.getGenericParameterForClass(setterFactory.getClass(), SetterFactory.class); return types != null ? types[0] : null; } }
private static <O, I> Type getInType(ContextualConverter<I, O> converter) { Type[] types = TypeHelper.getGenericParameterForClass(converter.getClass(), ContextualConverter.class); if ( types == null) { return Object.class; } else { return types[0]; } } }
private static Type getTargetType(Setter<?, ?> setter) { Type[] types = TypeHelper.getGenericParameterForClass(setter.getClass(), Setter.class); return types != null ? types[0] : null; }
private static Type getPropertyType(Setter<?, ?> setter) { Type[] types = TypeHelper.getGenericParameterForClass(setter.getClass(), Setter.class); return types != null ? types[1] : null; }
private static <O, I> Type getInType(ContextualConverter<I, O> converter) { Type[] types = TypeHelper.getGenericParameterForClass(converter.getClass(), ContextualConverter.class); if ( types == null) { return Object.class; } else { return types[0]; } } }
public static Type getReturnType(Getter<?, ?> getter) { Type[] paramTypesForInterface = TypeHelper.getGenericParameterForClass(getter.getClass(), Getter.class); return paramTypesForInterface != null ? paramTypesForInterface[1] : null; }
public Type getReturnType() { final Type[] paramTypesForInterface = TypeHelper.getGenericParameterForClass(reader.getClass(), CellValueReader.class); return paramTypesForInterface != null ? paramTypesForInterface[0] : null; }
private static Type getPropertyType(Setter<?, ?> setter) { Type[] types = TypeHelper.getGenericParameterForClass(setter.getClass(), Setter.class); return types != null ? types[1] : null; }
private static Type getTargetType(IndexedSetterFactory<?, ?> setterFactory) { Type[] types = TypeHelper.getGenericParameterForClass(setterFactory.getClass(), IndexedSetterFactory.class); return types != null ? types[0] : null; }
private static Type getTargetType(Setter<?, ?> setter) { Type[] types = TypeHelper.getGenericParameterForClass(setter.getClass(), Setter.class); return types != null ? types[0] : null; }
private static Type getTargetType(SetterFactory<?, ?> setterFactory) { Type[] types = TypeHelper.getGenericParameterForClass(setterFactory.getClass(), SetterFactory.class); return types != null ? types[0] : null; } }
private static Type getSourceType(GetterFactory<?, ?> getterFactory) { Type[] types = TypeHelper.getGenericParameterForClass(getterFactory.getClass(), GetterFactory.class); return types != null ? types[0] : null; } }
public static Type getSourceType(Getter<?, ?> getter) { Type[] paramTypesForInterface = TypeHelper.getGenericParameterForClass(getter.getClass(), Getter.class); return paramTypesForInterface != null ? paramTypesForInterface[0] : null; }
public Type getReturnType() { final Type[] paramTypesForInterface = TypeHelper.getGenericParameterForClass(reader.getClass(), CellValueReader.class); return paramTypesForInterface != null ? paramTypesForInterface[0] : null; }
private static Type getTargetType(IndexedSetterFactory<?, ?> setterFactory) { Type[] types = TypeHelper.getGenericParameterForClass(setterFactory.getClass(), IndexedSetterFactory.class); return types != null ? types[0] : null; }
public static Type getReturnType(Getter<?, ?> getter) { Type[] paramTypesForInterface = TypeHelper.getGenericParameterForClass(getter.getClass(), Getter.class); return paramTypesForInterface != null ? paramTypesForInterface[1] : null; }
public static Type getSourceType(Getter<?, ?> getter) { Type[] paramTypesForInterface = TypeHelper.getGenericParameterForClass(getter.getClass(), Getter.class); return paramTypesForInterface != null ? paramTypesForInterface[0] : null; }
public static MapEntryTypes getKeyValueTypeOfMap(Type outType) { Type[] parameterTypes = getGenericParameterForClass(outType, Map.class); if (parameterTypes != null) { return new MapEntryTypes(parameterTypes[0], parameterTypes[1]); } return MapEntryTypes.OBJECT_OBJECT; }
public static MapEntryTypes getKeyValueTypeOfMap(Type outType) { Type[] parameterTypes = getGenericParameterForClass(outType, Map.class); if (parameterTypes != null) { return new MapEntryTypes(parameterTypes[0], parameterTypes[1]); } return MapEntryTypes.OBJECT_OBJECT; }