Back to project page AndroidAdvancedDemos.
The source code is released under:
MIT License
If you think the Android project AndroidAdvancedDemos listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.krieger.training.androidadvanceddemos.entities; // w ww. j av a2 s . c o m import java.util.ArrayList; public class HeadedList <HeaderType, ItemType>{ private HeaderType header; private ArrayList<ItemType> contents; public HeadedList(){} public HeadedList(HeaderType header, ArrayList<ItemType> contents){ this.header=header; this.contents=contents; } public void setHeader(HeaderType header) { this.header = header; } public void setContents(ArrayList<ItemType> contents) { this.contents = contents; } public HeaderType getHeader() { return header; } public ArrayList<ItemType> getContents() { return contents; } }