All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.braintreepayments.http.multipart.MultipartBody Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.braintreepayments.http.multipart;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

public class MultipartBody implements Iterable {

	private List partList;

	public MultipartBody(FormData... parts) {
		this.partList = new ArrayList<>();

		partList.addAll(Arrays.asList(parts));
	}

	public void addPart(FormData part) {
		partList.add(part);
	}

	@Override
	public Iterator iterator() {
		return partList.iterator();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy