當前位置: 首頁>>代碼示例>>Java>>正文


Java Parcel.readList方法代碼示例

本文整理匯總了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;
}
 
開發者ID:KeenenCharles,項目名稱:AndroidUnplash,代碼行數:21,代碼來源:Result.java

示例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);
        }
    }
 
開發者ID:LenaShervarly,項目名稱:TreasureHunting,代碼行數:24,代碼來源:Route.java

示例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;
}
 
開發者ID:prakh25,項目名稱:MovieApp,代碼行數:27,代碼來源:KnownFor.java

示例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());
}
 
開發者ID:WeDevelopTeam,項目名稱:HeroVideo-master,代碼行數:13,代碼來源:RegionTypesInfo.java

示例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;
}
 
開發者ID:vikasdesale,項目名稱:News24x7-news-from-every-part-of-the-world,代碼行數:12,代碼來源:NewsArticleList.java

示例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());
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:13,代碼來源:CityBean.java

示例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());
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:33,代碼來源:NewsInfo.java

示例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());
}
 
開發者ID:BittleDragon,項目名稱:MyRepository,代碼行數:9,代碼來源:HomepageData.java

示例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());
}
 
開發者ID:raulh82vlc,項目名稱:Transactions-Viewer,代碼行數:8,代碼來源:ProductUI.java

示例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();
}
 
開發者ID:alessandrojean,項目名稱:order-by-android,代碼行數:15,代碼來源:Aula.java

示例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;
}
 
開發者ID:prakh25,項目名稱:MovieApp,代碼行數:29,代碼來源:MultiSearchResult.java

示例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;
}
 
開發者ID:prakh25,項目名稱:MovieApp,代碼行數:12,代碼來源:TvResponse.java

示例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;
  }
}
 
開發者ID:joedayz,項目名稱:pedidos-app,代碼行數:13,代碼來源:ExpandableGroup.java

示例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;
}
 
開發者ID:prakh25,項目名稱:MovieApp,代碼行數:9,代碼來源:GenreResponse.java

示例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;
}
 
開發者ID:prakh25,項目名稱:MovieApp,代碼行數:12,代碼來源:PersonSearchResponse.java


注:本文中的android.os.Parcel.readList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。