ExtraParameters { public List<String> getAsList(final String key) { return ImmutableList.copyOf(getEntry(key)); } ExtraParameters(final List<String> scope, final Multimap<String, String> parameters); boolean containsAny(String... keys); Optional<Filter> getFilter(String key, QueryParser parser); Optional<Integer> getInteger(String key); Optional<String> get(String key); boolean contains(String key); String require(final String key); boolean contains(ParameterSpecification parameter); List<String> getAsList(final String key); Optional<Boolean> getBoolean(final String key); Optional<Duration> getDuration(String key); ExtraParameters scope(final String scope); static ExtraParameters empty(); static ExtraParameters ofList(final List<String> input); static final ParameterSpecification CONFIGURE; }
@Test public void testList() { assertEquals(ImmutableList.of("42", "hello"), extra.getAsList("list")); }