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

com.bld.commons.utils.data.ObjectResponse Maven / Gradle / Ivy

There is a newer version: 2.0.6
Show newest version
/**
 * @author Francesco Baldi
 * @mail [email protected]
 * @class bld.commons.reflection.model.ObjectResponse.java
 */
package com.bld.commons.utils.data;

import java.io.Serializable;

import jakarta.validation.Valid;

/**
 * The Class ObjectResponse.
 *
 * @param  the generic type
 */
@SuppressWarnings("serial")
public class ObjectResponse implements Serializable{

	/** The data. */
	@Valid
	private T data;
	
	/**
	 * Instantiates a new object response.
	 */
	public ObjectResponse() {
		super();
	}
	
	/**
	 * Instantiates a new object response.
	 *
	 * @param data the data
	 */
	public ObjectResponse(T data) {
		super();
		this.data = data;
	}




	/**
	 * Gets the data.
	 *
	 * @return the data
	 */
	public T getData() {
		return data;
	}

	/**
	 * Sets the data.
	 *
	 * @param data the new data
	 */
	public void setData(T data) {
		this.data = data;
	}
	
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy