@Test public void config_string() throws Exception { assertEquals( "{\n" + " " + AB.configString() + ",\n" + " " + XY.configString() + "\n" + "}", nrs.configString()); }
@Override public String configString() { if (isEmpty()) return "{}"; return nameResolvers.stream() .map(NameBoundResolver::configString) .map(s -> " " + s) .collect(Collectors.joining(",\n", "{\n", "\n}")); }
NameBoundResolverSet implements NameBoundResolver { @Override public String configString() { if (isEmpty()) return "{}"; return nameResolvers.stream() .map(NameBoundResolver::configString) .map(s -> " " + s) .collect(Collectors.joining(",\n", "{\n", "\n}")); } }
NameBoundResolverSet implements NameBoundResolver { @Override public String configString() { if (isEmpty()) return "{}"; return nameResolvers.stream() .map(NameBoundResolver::configString) .map(s -> " " + s) .collect(Collectors.joining(",\n", "{\n", "\n}")); } NameBoundResolverSet(@NonNull Collection<NameBoundResolver> nameResolvers);  NameBoundResolverSet(NameBoundResolver... nameResolvers); }
NameBoundResolverSet implements NameBoundResolver { @Override public String configString() { if (isEmpty()) return "{}"; return nameResolvers.stream() .map(NameBoundResolver::configString) .map(s -> " " + s) .collect(Collectors.joining(",\n", "{\n", "\n}")); } NameBoundResolverSet(@NonNull Collection<NameBoundResolver> nameResolvers);  NameBoundResolverSet(NameBoundResolver... nameResolvers); @Override Stream<NamedResolverMap> resolve(); @Override Stream<Any2<Integer, String>> getKeys(); @Override String configString(); @Override boolean isEmpty(); @Override void close(); }
NameBoundResolverSet implements NameBoundResolver { @Override public String configString() { if (isEmpty()) return "{}"; return nameResolvers.stream() .map(NameBoundResolver::configString) .map(s -> " " + s) .collect(Collectors.joining(",\n", "{\n", "\n}")); } NameBoundResolverSet(@NonNull Collection<NameBoundResolver> nameResolvers);  NameBoundResolverSet(NameBoundResolver... nameResolvers); @Override Stream<NamedResolverMap> resolve(); @Override Stream<Any2<Integer, String>> getKeys(); @Override String configString(); @Override boolean isEmpty(); @Override void close();  }