/** {@inheritDoc} */ public Set<String> listPropertyNames() { return target.listPropertyNames(); }
/** {@inheritDoc} */ @Override public Iterator<String> getKeys() { Set< String > init = new HashSet<String>(); Set < String > result = ff4jStore().listPropertyNames(); return (result == null) ? init.iterator() : result.iterator(); }
public PropertyStoreApiBean(PropertyStore pStore) { type = pStore.getClass().getName(); if (pStore instanceof FF4jCacheProxy) { cache = new CacheApiBean(pStore); } properties = pStore.listPropertyNames(); numberOfProperties = properties.size(); }
/** {@inheritDoc} */ @Override public Set<String> listPropertyNames() { return getTargetPropertyStore().listPropertyNames(); }
/** {@inheritDoc} */ @Override public Iterator<String> getKeys(String prefix) { Set< String > setOfNames = ff4jStore().listPropertyNames(); Set< String > results = new HashSet<String>(); if (setOfNames != null && setOfNames.size() > 0) { for (String name : setOfNames) { if (name.startsWith(prefix)) { results.add(name); } } } return results.iterator(); }
/** * Constructor from its feature store. * * @param featureStore * cuurent fature store */ public PropertyStoreApiBean(PropertyStore pStore) { type = pStore.getClass().getName(); if (pStore instanceof FF4jCacheProxy) { cache = new CacheApiBean(pStore); } properties = pStore.listPropertyNames(); numberOfProperties = properties.size(); }
/** TDD. */ @Test public void listPropertyNames() { // Given, When Set< String > proNames = testedStore.listPropertyNames(); // Then Assert.assertTrue(proNames.contains("a")); }
/** * Check Number of features * * @param featureName * target featureName * @return current object */ public final AssertFf4j assertThatPropertyStoreHasSize(int expectedNumber) { Assert.assertEquals(expectedNumber, ff4j.getPropertiesStore().listPropertyNames().size()); waitSomeSeconds(); return this; }
PropertyStore ps = ff4j.getConcretePropertyStore(); this.propertyStore = ps.getClass().getSimpleName(); this.nbProperties = ps.listPropertyNames().size(); propertyStore = propertyStore.replaceAll("PropertyStore", "").toLowerCase();
Set< String> propertiesNames = getFf4j().getPropertiesStore().listPropertyNames(); if (propertiesNames.contains(newName)) { msgType = "warning"; Set< String> propertiesNames = getFf4j().getPropertiesStore().listPropertyNames(); if (propertiesNames.contains(newName)) { msgType = "warning";
String propertyStore = "---"; if (fs != null) { propertyStore = String.valueOf(ps.listPropertyNames().size());