@Test public void testSetParamDefault() throws Exception { URI uri = new URI("http: final Multimap<String, String> parameters = URIUtils.getParameters(uri); URIUtils.setParamDefault(parameters, "a", "n1"); assertEquals(6, parameters.size()); assertTestParams(parameters); URIUtils.setParamDefault(parameters, "e", "n1"); assertEquals(7, parameters.size()); assertTestParams(parameters); assertTrue(parameters.containsEntry("e", "n1")); }
public static void setParamDefault( final Multimap<String, String> params, final String key, final String value) { if (!params.containsKey(key)) { params.put(key, value); } }
URIUtils { public static void setParamDefault( final Multimap<String, String> params, final String key, final String value) { if (!params.containsKey(key)) { params.put(key, value); } } }
URIUtils { public static void setParamDefault( final Multimap<String, String> params, final String key, final String value) { if (!params.containsKey(key)) { params.put(key, value); } } private  URIUtils(); }
URIUtils { public static void setParamDefault( final Multimap<String, String> params, final String key, final String value) { if (!params.containsKey(key)) { params.put(key, value); } } private  URIUtils(); static Multimap<String, String> getParameters(final URI uri); static Multimap<String, String> getParameters(final String rawQuery); static String addParams(
            final String url, final Multimap<String, String> params, final Set<String> overrideParams); static URI addParams(
            final URI uri, final Multimap<String, String> params, final Set<String> overrideParams); static void addParamOverride(
            final Multimap<String, String> params, final String key, final String value); static void setParamDefault(
            final Multimap<String, String> params, final String key, final String value); static URI setQueryParams(final URI initialUri, final Multimap<String, String> queryParams); static String toString(final MfClientHttpRequestFactory requestFactory, final URI uri); static String toString(final MfClientHttpRequestFactory requestFactory, final URL url); static URI setPath(final URI initialUri, final String path); }
URIUtils { public static void setParamDefault( final Multimap<String, String> params, final String key, final String value) { if (!params.containsKey(key)) { params.put(key, value); } } private  URIUtils(); static Multimap<String, String> getParameters(final URI uri); static Multimap<String, String> getParameters(final String rawQuery); static String addParams(
            final String url, final Multimap<String, String> params, final Set<String> overrideParams); static URI addParams(
            final URI uri, final Multimap<String, String> params, final Set<String> overrideParams); static void addParamOverride(
            final Multimap<String, String> params, final String key, final String value); static void setParamDefault(
            final Multimap<String, String> params, final String key, final String value); static URI setQueryParams(final URI initialUri, final Multimap<String, String> queryParams); static String toString(final MfClientHttpRequestFactory requestFactory, final URI uri); static String toString(final MfClientHttpRequestFactory requestFactory, final URL url); static URI setPath(final URI initialUri, final String path);  }