All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.leonarduk.clearcheckbook.processor.ClearCheckBookTaskSerialProcessor Maven / Gradle / Ivy

Go to download

A Java library to access the HTTP developer API for Clearcheckbook.com, the money management website.

There is a newer version: 1.4
Show newest version
/**
 * ClearCheckBookTaskSerialProcessor
 *
 * @author ${author}
 * @since 10-Jul-2016
 */
package com.leonarduk.clearcheckbook.processor;

import java.util.List;

import com.leonarduk.clearcheckbook.ClearcheckbookException;
import com.leonarduk.clearcheckbook.calls.BulkProcessable;
import com.leonarduk.clearcheckbook.dto.AbstractDataType;

/**
 * The Class ClearCheckBookTaskSerialProcessor.
 *
 * @param 
 *            the generic type
 */
public class ClearCheckBookTaskSerialProcessor>
        implements ClearCheckBookTaskProcessor {

	/** The call. */
	private final BulkProcessable call;

	/**
	 * Instantiates a new clear check book task serial processor.
	 *
	 * @param call
	 *            the call
	 */
	public ClearCheckBookTaskSerialProcessor(final BulkProcessable call) {
		this.call = call;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.leonarduk.clearcheckbook.processor.ClearCheckBookTaskProcessor#processQueue(java.util.
	 * List)
	 */
	@Override
	public List processQueue(final List dataTypeList) throws ClearcheckbookException {
		return this.call.bulkProcess(dataTypeList);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy