org.proshin.finapi.primitives.pair.PlainNameValuePair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finapi-java-client Show documentation
Show all versions of finapi-java-client Show documentation
True-OOP Java client for finAPI
The newest version!
package org.proshin.finapi.primitives.pair;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
public final class PlainNameValuePair implements NameValuePair {
private final NameValuePair origin;
public PlainNameValuePair(final String name, final Object value) {
this(name, value.toString());
}
public PlainNameValuePair(final String name, final String value) {
this(new BasicNameValuePair(name, value));
}
public PlainNameValuePair(final NameValuePair origin) {
this.origin = origin;
}
@Override
public String getName() {
return this.origin.getName();
}
@Override
public String getValue() {
return this.origin.getValue();
}
}