Back to project page android-model-record.
The source code is released under:
MIT License
If you think the Android project android-model-record 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.fanpics.opensource.android.modelrecord.sample.data.model; /*from w w w .j a v a 2 s . c om*/ import com.google.gson.annotations.SerializedName; import java.util.List; public class ImgurData { @SerializedName("data") List<ImgurItem> imgurItems; public List<ImgurItem> getFirstTenItems() { if (imgurItems != null && imgurItems.size() > 10) { return imgurItems.subList(0, 10); } return imgurItems; } public void setImgurItems(List<ImgurItem> imgurItems) { this.imgurItems = imgurItems; } }