本文整理匯總了Java中android.os.Parcel.readList方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.readList方法的具體用法?Java Parcel.readList怎麽用?Java Parcel.readList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.readList方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createFromParcel
import android.os.Parcel; //導入方法依賴的package包/類
@SuppressWarnings({
"unchecked"
})
public Result createFromParcel(Parcel in) {
Result instance = new Result();
instance.id = ((String) in.readValue((String.class.getClassLoader())));
instance.createdAt = ((String) in.readValue((String.class.getClassLoader())));
instance.updatedAt = ((String) in.readValue((String.class.getClassLoader())));
instance.width = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.height = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.color = ((String) in.readValue((String.class.getClassLoader())));
instance.likes = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.likedByUser = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
instance.user = ((User) in.readValue((User.class.getClassLoader())));
in.readList(instance.currentUserCollections, (java.lang.Object.class.getClassLoader()));
instance.urls = ((Urls) in.readValue((Urls.class.getClassLoader())));
in.readList(instance.categories, (Category.class.getClassLoader()));
instance.links = ((Links) in.readValue((Links.class.getClassLoader())));
return instance;
}
示例2: Route
import android.os.Parcel; //導入方法依賴的package包/類
protected Route(Parcel in) {
_audioPoints = new ArrayList<>();
in.readList(_audioPoints, AudioPoint.class.getClassLoader());
_geoPoints = new ArrayList<>();
in.readList(_geoPoints, Point.class.getClassLoader());
_passedPoints = new ArrayList<>();
in.readList(_passedPoints, Boolean.class.getClassLoader());
int size = in.readInt();
_pointTrackMapper = new HashMap<>(size);
for(int i = 0; i < size; i++)
{
int pointId = in.readInt();
ArrayList<String> trackNames = new ArrayList<>();
in.readList(trackNames, String.class.getClassLoader());
_pointTrackMapper.put(pointId, trackNames);
}
}
示例3: createFromParcel
import android.os.Parcel; //導入方法依賴的package包/類
@SuppressWarnings({
"unchecked"
})
public KnownFor createFromParcel(Parcel in) {
KnownFor instance = new KnownFor();
instance.posterPath = ((String) in.readValue((String.class.getClassLoader())));
instance.adult = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
instance.overview = ((String) in.readValue((String.class.getClassLoader())));
instance.releaseDate = ((String) in.readValue((String.class.getClassLoader())));
instance.originalTitle = ((String) in.readValue((String.class.getClassLoader())));
in.readList(instance.genreIds, (Integer.class.getClassLoader()));
instance.id = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.mediaType = ((String) in.readValue((String.class.getClassLoader())));
instance.originalLanguage = ((String) in.readValue((String.class.getClassLoader())));
instance.title = ((String) in.readValue((String.class.getClassLoader())));
instance.backdropPath = ((Object) in.readValue((Object.class.getClassLoader())));
instance.popularity = ((Double) in.readValue((Double.class.getClassLoader())));
instance.voteCount = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.video = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
instance.voteAverage = ((Double) in.readValue((Integer.class.getClassLoader())));
instance.firstAirDate = ((String) in.readValue((String.class.getClassLoader())));
in.readList(instance.originCountry, (String.class.getClassLoader()));
instance.name = ((String) in.readValue((String.class.getClassLoader())));
instance.originalName = ((String) in.readValue((String.class.getClassLoader())));
return instance;
}
示例4: DataBean
import android.os.Parcel; //導入方法依賴的package包/類
protected DataBean(Parcel in)
{
this.tid = in.readInt();
this.reid = in.readInt();
this.name = in.readString();
this.logo = in.readString();
this.gotoX = in.readString();
this.param = in.readString();
this.children = new ArrayList<ChildrenBean>();
in.readList(this.children, ChildrenBean.class.getClassLoader());
}
示例5: createFromParcel
import android.os.Parcel; //導入方法依賴的package包/類
@SuppressWarnings({
"unchecked"
})
public NewsArticleList createFromParcel(Parcel in) {
NewsArticleList instance = new NewsArticleList();
instance.status = ((String) in.readValue((String.class.getClassLoader())));
instance.source = ((String) in.readValue((String.class.getClassLoader())));
instance.sortBy = ((String) in.readValue((String.class.getClassLoader())));
in.readList(instance.articles, (Article.class.getClassLoader()));
return instance;
}
示例6: CityBean
import android.os.Parcel; //導入方法依賴的package包/類
protected CityBean(Parcel in) {
this.id = in.readString();
this.name = in.readString();
this.pinYin = in.readString();
this.gisGcj02Lat = (Double) in.readValue(Double.class.getClassLoader());
this.gisGcj02Lng = (Double) in.readValue(Double.class.getClassLoader());
this.gisBd09Lat = (Double) in.readValue(Double.class.getClassLoader());
this.gisBd09Lng = (Double) in.readValue(Double.class.getClassLoader());
this.zipcode = in.readString();
this.cityList = new ArrayList<DistrictBean>();
in.readList(this.cityList, DistrictBean.class.getClassLoader());
}
示例7: NewsInfo
import android.os.Parcel; //導入方法依賴的package包/類
protected NewsInfo(Parcel in) {
this.postid = in.readString();
this.hasCover = in.readByte() != 0;
this.hasHead = in.readInt();
this.replyCount = in.readInt();
this.hasImg = in.readInt();
this.digest = in.readString();
this.hasIcon = in.readByte() != 0;
this.docid = in.readString();
this.title = in.readString();
this.order = in.readInt();
this.priority = in.readInt();
this.lmodify = in.readString();
this.boardid = in.readString();
this.photosetID = in.readString();
this.template = in.readString();
this.votecount = in.readInt();
this.skipID = in.readString();
this.alias = in.readString();
this.skipType = in.readString();
this.cid = in.readString();
this.hasAD = in.readInt();
this.source = in.readString();
this.ename = in.readString();
this.imgsrc = in.readString();
this.tname = in.readString();
this.ptime = in.readString();
this.specialID = in.readString();
this.ads = in.createTypedArrayList(AdData.CREATOR);
this.imgextra = new ArrayList<ImgExtraData>();
in.readList(this.imgextra, ImgExtraData.class.getClassLoader());
}
示例8: HomepageData
import android.os.Parcel; //導入方法依賴的package包/類
protected HomepageData(Parcel in) {
this.recycleImage = new ArrayList<RecycleImageBean>();
in.readList(this.recycleImage, RecycleImageBean.class.getClassLoader());
this.recSpecialist = new ArrayList<RecSpecialistBean>();
in.readList(this.recSpecialist, RecSpecialistBean.class.getClassLoader());
this.ActivityTopicList = new ArrayList<ActivityTopicListBean>();
in.readList(this.ActivityTopicList, ActivityTopicListBean.class.getClassLoader());
}
示例9: ProductUI
import android.os.Parcel; //導入方法依賴的package包/類
private ProductUI(Parcel in) {
sku = in.readString();
if (transactions == null) {
transactions = new ArrayList<>();
}
in.readList(transactions, Transaction.class.getClassLoader());
}
示例10: Aula
import android.os.Parcel; //導入方法依賴的package包/類
protected Aula(Parcel in) {
id = in.readInt();
sala = in.readString();
materia = (Materia) in.readValue(Materia.class.getClassLoader());
dia = in.readString();
if (in.readByte() == 0x01) {
professores = new ArrayList<String>();
in.readList(professores, String.class.getClassLoader());
} else {
professores = null;
}
inicio = in.readString();
fim = in.readString();
}
示例11: createFromParcel
import android.os.Parcel; //導入方法依賴的package包/類
@SuppressWarnings({
"unchecked"
})
public MultiSearchResult createFromParcel(Parcel in) {
MultiSearchResult instance = new MultiSearchResult();
instance.posterPath = ((String) in.readValue((String.class.getClassLoader())));
instance.adult = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
instance.overview = ((String) in.readValue((String.class.getClassLoader())));
instance.releaseDate = ((String) in.readValue((String.class.getClassLoader())));
instance.originalTitle = ((String) in.readValue((String.class.getClassLoader())));
in.readList(instance.genreIds, (Integer.class.getClassLoader()));
instance.id = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.mediaType = ((String) in.readValue((String.class.getClassLoader())));
instance.originalLanguage = ((String) in.readValue((String.class.getClassLoader())));
instance.title = ((String) in.readValue((String.class.getClassLoader())));
instance.backdropPath = ((String) in.readValue((String.class.getClassLoader())));
instance.popularity = ((Double) in.readValue((Double.class.getClassLoader())));
instance.voteCount = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.video = ((Boolean) in.readValue((Boolean.class.getClassLoader())));
instance.voteAverage = ((Double) in.readValue((Double.class.getClassLoader())));
instance.profilePath = ((String) in.readValue((String.class.getClassLoader())));
in.readList(instance.knownFor, (KnownFor.class.getClassLoader()));
instance.name = ((String) in.readValue((String.class.getClassLoader())));
instance.firstAirDate = ((String) in.readValue((String.class.getClassLoader())));
in.readList(instance.originCountry, (String.class.getClassLoader()));
instance.originalName = ((String) in.readValue((String.class.getClassLoader())));
return instance;
}
示例12: createFromParcel
import android.os.Parcel; //導入方法依賴的package包/類
@SuppressWarnings({
"unchecked"
})
public TvResponse createFromParcel(Parcel in) {
TvResponse instance = new TvResponse();
instance.page = ((Integer) in.readValue((Integer.class.getClassLoader())));
in.readList(instance.tvResults, (TvResult.class.getClassLoader()));
instance.totalResults = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.totalPages = ((Integer) in.readValue((Integer.class.getClassLoader())));
return instance;
}
示例13: ExpandableGroup
import android.os.Parcel; //導入方法依賴的package包/類
protected ExpandableGroup(Parcel in) {
title = in.readString();
byte hasItems = in.readByte();
int size = in.readInt();
if (hasItems == 0x01) {
items = new ArrayList<T>(size);
Class<?> type = (Class<?>) in.readSerializable();
in.readList(items, type.getClassLoader());
} else {
items = null;
}
}
示例14: createFromParcel
import android.os.Parcel; //導入方法依賴的package包/類
@SuppressWarnings({
"unchecked"
})
public GenreResponse createFromParcel(Parcel in) {
GenreResponse instance = new GenreResponse();
in.readList(instance.genres, (Genre.class.getClassLoader()));
return instance;
}
示例15: createFromParcel
import android.os.Parcel; //導入方法依賴的package包/類
@SuppressWarnings({
"unchecked"
})
public PersonSearchResponse createFromParcel(Parcel in) {
PersonSearchResponse instance = new PersonSearchResponse();
instance.page = ((Integer) in.readValue((Integer.class.getClassLoader())));
in.readList(instance.personSearchResults, (PersonSearchResult.class.getClassLoader()));
instance.totalResults = ((Integer) in.readValue((Integer.class.getClassLoader())));
instance.totalPages = ((Integer) in.readValue((Integer.class.getClassLoader())));
return instance;
}