@Test public void shouldReturnAnInstanceOfDefaultProcessorForForm() throws Exception { ParamProcessor actual = ParamProcessors.newInstance(ParamType.FORM, null); assertSame(DefaultParamProcessor.INSTANCE, actual); }
public static ParamProcessor newInstance(ParamType type, String listSeparator){ switch(type){ case COOKIE: return listSeparator != null ? new CollectionMergingCookieParamProcessor(listSeparator) : DefaultCookieParamProcessor.INSTANCE; default: return listSeparator != null ? new CollectionMergingParamProcessor(listSeparator) : DefaultParamProcessor.INSTANCE; } }
ParamProcessors { public static ParamProcessor newInstance(ParamType type, String listSeparator){ switch(type){ case COOKIE: return listSeparator != null ? new CollectionMergingCookieParamProcessor(listSeparator) : DefaultCookieParamProcessor.INSTANCE; default: return listSeparator != null ? new CollectionMergingParamProcessor(listSeparator) : DefaultParamProcessor.INSTANCE; } } }
ParamProcessors { public static ParamProcessor newInstance(ParamType type, String listSeparator){ switch(type){ case COOKIE: return listSeparator != null ? new CollectionMergingCookieParamProcessor(listSeparator) : DefaultCookieParamProcessor.INSTANCE; default: return listSeparator != null ? new CollectionMergingParamProcessor(listSeparator) : DefaultParamProcessor.INSTANCE; } } private  ParamProcessors(); }
ParamProcessors { public static ParamProcessor newInstance(ParamType type, String listSeparator){ switch(type){ case COOKIE: return listSeparator != null ? new CollectionMergingCookieParamProcessor(listSeparator) : DefaultCookieParamProcessor.INSTANCE; default: return listSeparator != null ? new CollectionMergingParamProcessor(listSeparator) : DefaultParamProcessor.INSTANCE; } } private  ParamProcessors(); static ParamProcessor newInstance(ParamType type, String listSeparator); static Iterator<EncodedPair> iterate(List<Param> params, Charset charset); static Iterator<EncodedPair> iterate(List<Param> params, Charset charset, boolean encodeIfNeeded); }
ParamProcessors { public static ParamProcessor newInstance(ParamType type, String listSeparator){ switch(type){ case COOKIE: return listSeparator != null ? new CollectionMergingCookieParamProcessor(listSeparator) : DefaultCookieParamProcessor.INSTANCE; default: return listSeparator != null ? new CollectionMergingParamProcessor(listSeparator) : DefaultParamProcessor.INSTANCE; } } private  ParamProcessors(); static ParamProcessor newInstance(ParamType type, String listSeparator); static Iterator<EncodedPair> iterate(List<Param> params, Charset charset); static Iterator<EncodedPair> iterate(List<Param> params, Charset charset, boolean encodeIfNeeded);  }