Back to project page mobile2-android.
The source code is released under:
Apache License
If you think the Android project mobile2-android 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.ecollege.android.adapter; /*from w w w . jav a2 s . c o m*/ public class UberItem<T> { public enum UberItemType { HEADER, DATA_ITEM, LOAD_MORE_ITEM, LOADING_ITEM, NO_DATA_ITEM, LAST_UPDATED_ITEM, FOOTER } private Object groupId; private UberItemType itemType; private T dataItem; private int dataItemIndex; public UberItem(T dataItem, int dataItemIndex) { this.itemType = UberItemType.DATA_ITEM; this.dataItem = dataItem; this.dataItemIndex = dataItemIndex; } public UberItem(UberItemType itemType) { this.itemType = itemType; } public UberItem(UberItemType itemType, Object groupId) { this.itemType = itemType; this.groupId = groupId; } public UberItemType getItemType() { return itemType; } public Object getGroupId() { return groupId; } public T getDataItem() { return dataItem; } public int getDataItemIndex() { return dataItemIndex; } }