@Test public void is_available() { 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.isAvailable("a"), is(true)); assertThat(params.isAvailable("?"), is(false)); }
@Override public boolean isAvailable(String name) { Objects.requireNonNull(name); return toMap().containsKey(name); }
BasicParameterSet implements ParameterSet { @Override public boolean isAvailable(String name) { Objects.requireNonNull(name); return toMap().containsKey(name); } }
BasicParameterSet implements ParameterSet { @Override public boolean isAvailable(String name) { Objects.requireNonNull(name); return toMap().containsKey(name); } BasicParameterSet(Map<String, String> entity); }
BasicParameterSet implements ParameterSet { @Override public boolean isAvailable(String name) { Objects.requireNonNull(name); return toMap().containsKey(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 boolean isAvailable(String name) { Objects.requireNonNull(name); return toMap().containsKey(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();  }