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

com.github.bordertech.restfriends.envelope.impl.DataResponse Maven / Gradle / Ivy

There is a newer version: 2.0.0-beta-1
Show newest version
package com.github.bordertech.restfriends.envelope.impl;

import com.github.bordertech.restfriends.envelope.DataEnvelope;
import java.io.Serializable;

/**
 * Service response with data.
 *
 * @param  the data type in the response
 */
public class DataResponse implements DataEnvelope {

	private T data;

	/**
	 * Protected default constructor (used by libraries like jaxb).
	 */
	protected DataResponse() {
		this.data = null;
	}

	/**
	 * @param data the response data
	 */
	public DataResponse(final T data) {
		this.data = data;
	}

	@Override
	public T getData() {
		return data;
	}

	@Override
	public void setData(final T data) {
		this.data = data;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy