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

com.bitpay.sdk.util.ParameterAdder Maven / Gradle / Ivy

Go to download

Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically Secure RESTful API.

There is a newer version: 10.1.0
Show 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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy