@Test public void pair_of_pairs() { ConstResolver cr = new ConstResolver( new ResolverTuple(newTupleElement(0), newTupleElement("zero")), new ResolverTuple(newTupleElement(1), newTupleElement("one"))); assertEquals("[ (0, \"zero\"), (1, \"one\") ]", cr.configString()); assertEquals(2, cr.getTupleWidth()); assertThat(cr.getTuples(), containsInAnyOrder( new ResolverTuple(newTupleElement(0), newTupleElement("zero")), new ResolverTuple(newTupleElement(1), newTupleElement("one")))); }
@Override public String configString() { if (tuples.isEmpty()) return "[]"; return tuples.stream() .map(ResolverTuple::toString) .collect(Collectors.joining(", ", "[ ", " ]")); }
ConstResolver implements Resolver { @Override public String configString() { if (tuples.isEmpty()) return "[]"; return tuples.stream() .map(ResolverTuple::toString) .collect(Collectors.joining(", ", "[ ", " ]")); } }
ConstResolver implements Resolver { @Override public String configString() { if (tuples.isEmpty()) return "[]"; return tuples.stream() .map(ResolverTuple::toString) .collect(Collectors.joining(", ", "[ ", " ]")); } ConstResolver(Collection<ResolverTuple> values);  ConstResolver(ResolverTuple... values); }
ConstResolver implements Resolver { @Override public String configString() { if (tuples.isEmpty()) return "[]"; return tuples.stream() .map(ResolverTuple::toString) .collect(Collectors.joining(", ", "[ ", " ]")); } ConstResolver(Collection<ResolverTuple> values);  ConstResolver(ResolverTuple... values); @Override String configString(); }
ConstResolver implements Resolver { @Override public String configString() { if (tuples.isEmpty()) return "[]"; return tuples.stream() .map(ResolverTuple::toString) .collect(Collectors.joining(", ", "[ ", " ]")); } ConstResolver(Collection<ResolverTuple> values);  ConstResolver(ResolverTuple... values); @Override String configString();  }