public static Object convertToLongList()

in src/main/java/com/microsoft/azure/functions/worker/binding/RpcCollectionLongDataSource.java [16:28]


	public static Object convertToLongList(List<Long> sourceValue, Type targetType) {
		if(targetType == List.class) {
			return new ArrayList<>(sourceValue);
		}
		else if(targetType instanceof ParameterizedType) {
			Type targetActualType = ((ParameterizedType) targetType).getActualTypeArguments()[0];
			if (targetActualType == Long.class) {
				return new ArrayList<>(sourceValue);
			}
			throw new UnsupportedOperationException("Input data type \"" + targetActualType + "\" is not supported");
		}
		throw new UnsupportedOperationException("Input data type \"" + targetType + "\" is not supported");
	}