Android Open Source - JsonPullParser Primitive Wrapper List Data






From Project

Back to project page JsonPullParser.

License

The source code is released under:

Apache License

If you think the Android project JsonPullParser listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright 2011 vvakame <vvakame@gmail.com>
 *//from   w w w .ja v a2s  .  c om
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.vvakame.sample;

import java.util.Date;
import java.util.List;

import net.vvakame.util.jsonpullparser.annotation.JsonKey;
import net.vvakame.util.jsonpullparser.annotation.JsonModel;

/**
 * A class with fields for all the primitive types.
 * @author vvakame
 */
@JsonModel
public class PrimitiveWrapperListData {

  @JsonKey
  List<Boolean> bool;

  @JsonKey
  List<Character> c;

  @JsonKey
  List<Byte> b;

  @JsonKey
  List<Short> s;

  @JsonKey
  List<Integer> i;

  @JsonKey
  List<Long> l;

  @JsonKey
  List<Float> f;

  @JsonKey
  List<Double> d;

  @JsonKey
  List<String> str;

  @JsonKey
  List<Date> date;

  @JsonKey
  List<SampleEnum> enums;


  /**
   * @return the bool
   * @category accessor
   */
  public List<Boolean> getBool() {
    return bool;
  }

  /**
   * @param bool the bool to set
   * @category accessor
   */
  public void setBool(List<Boolean> bool) {
    this.bool = bool;
  }

  /**
   * @return the c
   * @category accessor
   */
  public List<Character> getC() {
    return c;
  }

  /**
   * @param c the c to set
   * @category accessor
   */
  public void setC(List<Character> c) {
    this.c = c;
  }

  /**
   * @return the b
   * @category accessor
   */
  public List<Byte> getB() {
    return b;
  }

  /**
   * @param b the b to set
   * @category accessor
   */
  public void setB(List<Byte> b) {
    this.b = b;
  }

  /**
   * @return the s
   * @category accessor
   */
  public List<Short> getS() {
    return s;
  }

  /**
   * @param s the s to set
   * @category accessor
   */
  public void setS(List<Short> s) {
    this.s = s;
  }

  /**
   * @return the i
   * @category accessor
   */
  public List<Integer> getI() {
    return i;
  }

  /**
   * @param i the i to set
   * @category accessor
   */
  public void setI(List<Integer> i) {
    this.i = i;
  }

  /**
   * @return the l
   * @category accessor
   */
  public List<Long> getL() {
    return l;
  }

  /**
   * @param l the l to set
   * @category accessor
   */
  public void setL(List<Long> l) {
    this.l = l;
  }

  /**
   * @return the f
   * @category accessor
   */
  public List<Float> getF() {
    return f;
  }

  /**
   * @param f the f to set
   * @category accessor
   */
  public void setF(List<Float> f) {
    this.f = f;
  }

  /**
   * @return the d
   * @category accessor
   */
  public List<Double> getD() {
    return d;
  }

  /**
   * @param d the d to set
   * @category accessor
   */
  public void setD(List<Double> d) {
    this.d = d;
  }

  /**
   * @return the str
   * @category accessor
   */
  public List<String> getStr() {
    return str;
  }

  /**
   * @param str the str to set
   * @category accessor
   */
  public void setStr(List<String> str) {
    this.str = str;
  }

  /**
   * @return the date
   * @category accessor
   */
  public List<Date> getDate() {
    return date;
  }

  /**
   * @param date the date to set
   * @category accessor
   */
  public void setDate(List<Date> date) {
    this.date = date;
  }

  /**
   * @return the enums
   * @category accessor
   */
  public List<SampleEnum> getEnums() {
    return enums;
  }

  /**
   * @param enums the enums to set
   * @category accessor
   */
  public void setEnums(List<SampleEnum> enums) {
    this.enums = enums;
  }
}




Java Source Code List

net.vvakame.apt.AptUtil.java
net.vvakame.jsonpullparser.android.sample.MainActivity.java
net.vvakame.sample.BaseData.java
net.vvakame.sample.BuilderData.java
net.vvakame.sample.ComplexData2.java
net.vvakame.sample.ComplexData.java
net.vvakame.sample.ContainsAnotherPackageObjectData.java
net.vvakame.sample.ConverterData.java
net.vvakame.sample.ExtendsData1.java
net.vvakame.sample.ExtendsData2.java
net.vvakame.sample.ForInnerClassData.java
net.vvakame.sample.GenToPackagePrivateData.java
net.vvakame.sample.JsonMetaToPackagePrivateValidData.java
net.vvakame.sample.MiniData.java
net.vvakame.sample.NestDepth1Data.java
net.vvakame.sample.NestDepth2Data.java
net.vvakame.sample.NestParentData.java
net.vvakame.sample.PrimitiveTypeData.java
net.vvakame.sample.PrimitiveWrapperData.java
net.vvakame.sample.PrimitiveWrapperListData.java
net.vvakame.sample.SampleEnum.java
net.vvakame.sample.SortOrderData1.java
net.vvakame.sample.SortOrderData2.java
net.vvakame.sample.StoreJsonData1.java
net.vvakame.sample.StoreJsonData2.java
net.vvakame.sample.TestData.java
net.vvakame.sample.anotherpackage.AnotherPackageClass.java
net.vvakame.sample.converter.IntFlattenConverter.java
net.vvakame.sample.converter.StringDiscardConverter.java
net.vvakame.sample.duma.ItemMapConverter.java
net.vvakame.sample.duma.Item.java
net.vvakame.sample.duma.ReadItLater.java
net.vvakame.sample.issue25.Issue25.java
net.vvakame.sample.issue28.Issue28.java
net.vvakame.sample.issue2.Child0ValueP0.java
net.vvakame.sample.issue2.Child0ValueP1.java
net.vvakame.sample.issue2.Child1ValueP0.java
net.vvakame.sample.issue2.Child1ValueP1.java
net.vvakame.sample.issue2.Grandchild0ValueC0P0.java
net.vvakame.sample.issue2.Grandchild0ValueC0P1.java
net.vvakame.sample.issue2.Grandchild0ValueC1P0.java
net.vvakame.sample.issue2.Grandchild0ValueC1P1.java
net.vvakame.sample.issue2.Grandchild1ValueC0P0.java
net.vvakame.sample.issue2.Grandchild1ValueC0P1.java
net.vvakame.sample.issue2.Grandchild1ValueC1P0.java
net.vvakame.sample.issue2.Grandchild1ValueC1P1.java
net.vvakame.sample.issue2.Parent0Value.java
net.vvakame.sample.issue2.Parent1Value.java
net.vvakame.sample.issue30.PrimitiveList.java
net.vvakame.sample.issue30.RecursiveStructure.java
net.vvakame.sample.issue31.BaseData.java
net.vvakame.sample.issue31.ExtendData.java
net.vvakame.sample.twitter.Place.java
net.vvakame.sample.twitter.Place.java
net.vvakame.sample.twitter.Tweet.java
net.vvakame.sample.twitter.Tweet.java
net.vvakame.sample.twitter.User.java
net.vvakame.sample.twitter.User.java
net.vvakame.twitter.ResultTweet.java
net.vvakame.twitter.SearchResult.java
net.vvakame.util.jsonpullparser.JsonFormatException.java
net.vvakame.util.jsonpullparser.JsonPullParser.java
net.vvakame.util.jsonpullparser.JsonSlice.java
net.vvakame.util.jsonpullparser.Stack.java
net.vvakame.util.jsonpullparser.annotation.JsonKey.java
net.vvakame.util.jsonpullparser.annotation.JsonModel.java
net.vvakame.util.jsonpullparser.annotation.StoreJson.java
net.vvakame.util.jsonpullparser.builder.JsonCoderRouter.java
net.vvakame.util.jsonpullparser.builder.JsonModelBuilder.java
net.vvakame.util.jsonpullparser.builder.JsonModelCoder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyBuilderCreator.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyBuilder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyCoder.java
net.vvakame.util.jsonpullparser.builder.JsonPropertyMeta.java
net.vvakame.util.jsonpullparser.factory.JsonAnnotationProcessor.java
net.vvakame.util.jsonpullparser.factory.JsonKeyModel.java
net.vvakame.util.jsonpullparser.factory.JsonModelGenerator.java
net.vvakame.util.jsonpullparser.factory.JsonModelModel.java
net.vvakame.util.jsonpullparser.factory.Log.java
net.vvakame.util.jsonpullparser.factory.StandardTypeKindVisitor.java
net.vvakame.util.jsonpullparser.factory.StoreJsonModel.java
net.vvakame.util.jsonpullparser.factory.template.MvelTemplate.java
net.vvakame.util.jsonpullparser.factory.template.Template.java
net.vvakame.util.jsonpullparser.googleapiclient.JppFactory.java
net.vvakame.util.jsonpullparser.googleapiclient.JppGenerator.java
net.vvakame.util.jsonpullparser.googleapiclient.JppParser.java
net.vvakame.util.jsonpullparser.util.JsonArray.java
net.vvakame.util.jsonpullparser.util.JsonHash.java
net.vvakame.util.jsonpullparser.util.JsonParseUtil.java
net.vvakame.util.jsonpullparser.util.JsonSliceUtil.java
net.vvakame.util.jsonpullparser.util.JsonUtil.java
net.vvakame.util.jsonpullparser.util.OnJsonObjectAddListener.java
net.vvakame.util.jsonpullparser.util.TokenConverter.java
net.vvakame.util.jsonpullparser.util.Type.java