@Test public void get() { Map<String, String> map = new LinkedHashMap<>(); map.put("a", "A"); map.put("b", "B"); map.put("c", "C"); BasicParameterSet params = new BasicParameterSet(map); assertThat(params.get("a"), is("A")); assertThat(params.get("b"), is("B")); assertThat(params.get("c"), is("C")); assertThat(params.get("?"), is(nullValue())); }
@Override public String get(String name) { Objects.requireNonNull(name); return toMap().get(name); }
BasicParameterSet implements ParameterSet { @Override public String get(String name) { Objects.requireNonNull(name); return toMap().get(name); } }
BasicParameterSet implements ParameterSet { @Override public String get(String name) { Objects.requireNonNull(name); return toMap().get(name); } BasicParameterSet(Map<String, String> entity); }
BasicParameterSet implements ParameterSet { @Override public String get(String name) { Objects.requireNonNull(name); return toMap().get(name); } BasicParameterSet(Map<String, String> entity); @Override boolean isAvailable(String name); @Override String get(String name); @Override Set<String> getAvailable(); @Override Map<String, String> toMap(); @Override String toString(); }
BasicParameterSet implements ParameterSet { @Override public String get(String name) { Objects.requireNonNull(name); return toMap().get(name); } BasicParameterSet(Map<String, String> entity); @Override boolean isAvailable(String name); @Override String get(String name); @Override Set<String> getAvailable(); @Override Map<String, String> toMap(); @Override String toString();  }