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

rs.jerseyclient.data.HateOasPagedList Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
/**
 * 
 */
package rs.jerseyclient.data;

import java.util.List;


/**
 * The response according to HATEOAS paged responses.
 * 

The class is usually required for correct JSON (de)serialization.

* * @param the type of result * * @author ralph * */ public class HateOasPagedList extends AbstractData { private EmbeddedResultList _embedded; private PageInfo page; /** * Default constructor. */ public HateOasPagedList() {} /** * Returns the embedded result list. * @return the embedded result list */ public EmbeddedResultList get_embedded() { return _embedded; } /** * Returns the page information object * @return the page information object. */ public PageInfo getPage() { return page; } /** * Sets the embedded result list. * @param _embedded the embedded result list */ public void set_embedded(EmbeddedResultList _embedded) { this._embedded = _embedded; } /** * Sets the page information object * @param page the page information object. */ public void setPage(PageInfo page) { this.page = page; } /** * Embedded class for the result list. * * @author ralph * * @param the type of result */ public static class EmbeddedResultList { private List results; /** * Returns the result list. * @return the result list. */ public List getResults() { return results; } /** * Sets the result list. * @param results the result list */ public void setResults(List results) { this.results = results; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy