com.github.bordertech.restfriends.envelope.impl.DataResponse Maven / Gradle / Ivy
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