Java AtomicReference addParameter(final String key, final String value, final StringBuilder url, final AtomicReference thisSeparator, final String nextSeparator)

Here you can find the source of addParameter(final String key, final String value, final StringBuilder url, final AtomicReference thisSeparator, final String nextSeparator)

Description

add Parameter

License

Apache License

Declaration

public static void addParameter(final String key, final String value, final StringBuilder url,
            final AtomicReference<String> thisSeparator, final String nextSeparator) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.concurrent.atomic.AtomicReference;

public class Main {
    public static void addParameter(final String key, final String value, final StringBuilder url,
            final AtomicReference<String> thisSeparator, final String nextSeparator) {
        if (value != null) {
            url.append(thisSeparator.get());
            url.append(key);//  w  ww.jav a2  s. co  m
            url.append("=");
            url.append(value);
            thisSeparator.set(nextSeparator);
        }
    }
}

Related

  1. addThrowable(AtomicReferenceFieldUpdater field, T instance, Throwable exception)
  2. asList(AtomicReferenceArray a)
  3. cancel(Future future, boolean mayInterruptIfRunning)
  4. cancelAll(Future[] futures, boolean mayInterruptIfRunning)