@Test public void testBuilds() { TypeNameValuesStringBuilder builder = new TypeNameValuesStringBuilder(); assertThat(builder.build(null, "a=1")).isNull(); assertThat(builder.build(Collections.<String>emptyList(), "a=1")).isNull(); assertThat(builder.build(asList("x-key1-x"), "")).isEmpty(); assertThat(builder.build(asList("x-key1-x", "y-key2-y"), "")).isEmpty(); assertThat(builder.build(asList("x-key1-x"), "x-key1-x=x-value1-x")).isEqualTo("x-value1-x"); assertThat(builder.build(asList("x-key1-x"), "y-key2-y=y-value2-y")).isEmpty(); assertThat(builder.build(asList("x-key1-x", "y-key2-y"), "x-key1-x=x-value1-x,y-key2-y=y-value2-y")) .isEqualTo("x-value1-x_y-value2-y"); }
public String build(List<String> typeNames, String typeNameStr) { return doBuild(typeNames, typeNameStr); }
TypeNameValuesStringBuilder { public String build(List<String> typeNames, String typeNameStr) { return doBuild(typeNames, typeNameStr); } }
TypeNameValuesStringBuilder { public String build(List<String> typeNames, String typeNameStr) { return doBuild(typeNames, typeNameStr); } TypeNameValuesStringBuilder();  TypeNameValuesStringBuilder(String separator); }
TypeNameValuesStringBuilder { public String build(List<String> typeNames, String typeNameStr) { return doBuild(typeNames, typeNameStr); } TypeNameValuesStringBuilder();  TypeNameValuesStringBuilder(String separator); String build(List<String> typeNames, String typeNameStr); static TypeNameValuesStringBuilder getDefaultBuilder(); }
TypeNameValuesStringBuilder { public String build(List<String> typeNames, String typeNameStr) { return doBuild(typeNames, typeNameStr); } TypeNameValuesStringBuilder();  TypeNameValuesStringBuilder(String separator); String build(List<String> typeNames, String typeNameStr); static TypeNameValuesStringBuilder getDefaultBuilder(); static final String DEFAULT_SEPARATOR; }