com.bitpay.sdk.util.ParameterAdder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitpay_sdk Show documentation
Show all versions of bitpay_sdk Show documentation
Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically
Secure RESTful API.
The newest version!
/*
* Copyright (c) 2019 BitPay.
* All rights reserved.
*/
package com.bitpay.sdk.util;
import java.util.List;
import java.util.Objects;
import org.apache.http.message.BasicNameValuePair;
public class ParameterAdder {
public static void execute(
final List params,
final String name,
final String value
) {
if (Objects.isNull(value)) {
return;
}
params.add(new BasicNameValuePair(name, value));
}
}