@Test public void convertToWithEmptyList() throws Exception { final String s = new PatternListConverter().convertTo(Collections.emptyList()); assertEquals("", s); }
@Override public String convertTo(List<Pattern> value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return Joiner.on(SEPARATOR) .skipNulls() .join(value); }
PatternListConverter implements Converter<List<Pattern>> { @Override public String convertTo(List<Pattern> value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return Joiner.on(SEPARATOR) .skipNulls() .join(value); } }
PatternListConverter implements Converter<List<Pattern>> { @Override public String convertTo(List<Pattern> value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return Joiner.on(SEPARATOR) .skipNulls() .join(value); }  }
PatternListConverter implements Converter<List<Pattern>> { @Override public String convertTo(List<Pattern> value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return Joiner.on(SEPARATOR) .skipNulls() .join(value); }  @Override List<Pattern> convertFrom(String value); @Override String convertTo(List<Pattern> value); }
PatternListConverter implements Converter<List<Pattern>> { @Override public String convertTo(List<Pattern> value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return Joiner.on(SEPARATOR) .skipNulls() .join(value); }  @Override List<Pattern> convertFrom(String value); @Override String convertTo(List<Pattern> value);  }