/** {@inheritDoc} */ @Override public Object getPropertyNativeCache() { return getPropertiesCache(); }
/** {@inheritDoc} */ @Override public void clearProperties() { getPropertiesCache().clear(); }
/** {@inheritDoc} */ @Override public void evictProperty(String propertyName) { if (getPropertiesCache().containsKey(propertyName)) { getPropertiesCache().remove(propertyName); } }
/** {@inheritDoc} */ @Override public Property<?> getProperty(String name) { return getPropertiesCache().get(name); }
/** {@inheritDoc} */ @Override public Set<String> listCachedPropertyNames() { Set<String> keys = new HashSet<>(); // Implements iterate, more elegant as stream how ? getPropertiesCache().forEach(e->keys.add(e.getKey())); return keys; }
/** {@inheritDoc} */ @Override public void putProperty(Property<?> feat) { getPropertiesCache().put(feat.getName(), feat); }
/** {@inheritDoc} */ @Override public Set<String> listPropertyNames() { Set<String> setOfPropertyNames = new HashSet<>(); getCacheManager().getPropertiesCache().forEach(e->setOfPropertyNames.add(e.getKey())); return setOfPropertyNames; }
/** {@inheritDoc} */ @Override public void clear() { getCacheManager().getPropertiesCache().removeAll(); }
/** {@inheritDoc} */ @Override public Map<String, Property<?>> readAllProperties() { Map<String, Property<?>> myMap = new HashMap<>(); getCacheManager().getPropertiesCache().forEach(e->myMap.put(e.getKey(), e.getValue())); return myMap; }