JsonBatchSubmission.java :  » Google-tech » amazingapis » org » webscale » json » Java Open Source

Java Open Source » Google tech » amazingapis 
amazingapis » org » webscale » json » JsonBatchSubmission.java
package org.webscale.json;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class JsonBatchSubmission<T> implements Serializable {

  private static final long serialVersionUID = 5201903706990716181L;
  List<T> batchItems = new ArrayList<T>();
  
  public void addBatchItem(T item){
    batchItems.add(item);
  }

  public List<T> getBatchItems() {
    return batchItems;
  }

  public void setBatchItems(List<T> batchItems) {
    this.batchItems = batchItems;
  }
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.