@Test public void testGetPropertyByString() { AccumuloConfiguration c = DefaultConfiguration.getInstance(); boolean found = false; for (Property p : Property.values()) { if (p.getType() != PropertyType.PREFIX) { found = true; assertEquals(c.get(p), c.get(p.getKey())); assertEquals(p.getDefaultValue(), c.get(p.getKey())); } } assertTrue("test was a dud, and did nothing", found); }
public String get(String property) { Map<String,String> propMap = new HashMap<>(1); getProperties(propMap, key -> Objects.equals(property, key)); return propMap.get(property); }
AccumuloConfiguration implements Iterable<Entry<String,String>> { public String get(String property) { Map<String,String> propMap = new HashMap<>(1); getProperties(propMap, key -> Objects.equals(property, key)); return propMap.get(property); } }
AccumuloConfiguration implements Iterable<Entry<String,String>> { public String get(String property) { Map<String,String> propMap = new HashMap<>(1); getProperties(propMap, key -> Objects.equals(property, key)); return propMap.get(property); }  }
AccumuloConfiguration implements Iterable<Entry<String,String>> { public String get(String property) { Map<String,String> propMap = new HashMap<>(1); getProperties(propMap, key -> Objects.equals(property, key)); return propMap.get(property); }  String get(String property); abstract String get(Property property); Property resolve(Property property, Property deprecatedProperty); abstract void getProperties(Map<String,String> props, Predicate<String> filter); @Override Iterator<Entry<String,String>> iterator(); long getUpdateCount(); Map<String,String> getAllPropertiesWithPrefix(Property property); Map<String,String> getAllPropertiesWithPrefixStripped(Property prefix); long getAsBytes(Property property); long getTimeInMillis(Property property); boolean getBoolean(Property property); double getFraction(Property property); int[] getPort(Property property); int getCount(Property property); String getPath(Property property); int getMaxFilesPerTablet(); boolean isPropertySet(Property prop, boolean cacheAndWatch); Deriver<T> newDeriver(Function<AccumuloConfiguration,T> converter); Collection<ScanExecutorConfig> getScanExecutors(); void invalidateCache(); }
AccumuloConfiguration implements Iterable<Entry<String,String>> { public String get(String property) { Map<String,String> propMap = new HashMap<>(1); getProperties(propMap, key -> Objects.equals(property, key)); return propMap.get(property); }  String get(String property); abstract String get(Property property); Property resolve(Property property, Property deprecatedProperty); abstract void getProperties(Map<String,String> props, Predicate<String> filter); @Override Iterator<Entry<String,String>> iterator(); long getUpdateCount(); Map<String,String> getAllPropertiesWithPrefix(Property property); Map<String,String> getAllPropertiesWithPrefixStripped(Property prefix); long getAsBytes(Property property); long getTimeInMillis(Property property); boolean getBoolean(Property property); double getFraction(Property property); int[] getPort(Property property); int getCount(Property property); String getPath(Property property); int getMaxFilesPerTablet(); boolean isPropertySet(Property prop, boolean cacheAndWatch); Deriver<T> newDeriver(Function<AccumuloConfiguration,T> converter); Collection<ScanExecutorConfig> getScanExecutors(); void invalidateCache();  }