/** * Returns all of the property names (keys) in this {@code Properties} object. */ public Enumeration<?> propertyNames() { Hashtable<Object, Object> selected = new Hashtable<Object, Object>(); selectProperties(selected, false); return selected.keys(); }
/** * Returns those property names (keys) in this {@code Properties} object for which * both key and value are strings. * * @return a set of keys in the property list * @since 1.6 */ public Set<String> stringPropertyNames() { Hashtable<String, Object> stringProperties = new Hashtable<String, Object>(); selectProperties(stringProperties, true); return Collections.unmodifiableSet(stringProperties.keySet()); }
private <K> void selectProperties(Hashtable<K, Object> selectProperties, final boolean isStringOnly) { if (defaults != null) { defaults.selectProperties(selectProperties, isStringOnly); } Enumeration<Object> keys = keys(); while (keys.hasMoreElements()) { @SuppressWarnings("unchecked") K key = (K) keys.nextElement(); if (isStringOnly && !(key instanceof String)) { // Only select property with string key and value continue; } Object value = get(key); selectProperties.put(key, value); } }
/** * Returns all of the property names (keys) in this {@code Properties} object. */ public Enumeration<?> propertyNames() { Hashtable<Object, Object> selected = new Hashtable<Object, Object>(); selectProperties(selected, false); return selected.keys(); }
/** * Returns those property names (keys) in this {@code Properties} object for which * both key and value are strings. * * @return a set of keys in the property list * @since 1.6 */ public Set<String> stringPropertyNames() { Hashtable<String, Object> stringProperties = new Hashtable<String, Object>(); selectProperties(stringProperties, true); return Collections.unmodifiableSet(stringProperties.keySet()); }
/** * Returns all of the property names (keys) in this {@code Properties} object. */ public Enumeration<?> propertyNames() { Hashtable<Object, Object> selected = new Hashtable<Object, Object>(); selectProperties(selected, false); return selected.keys(); }
/** * Returns all of the property names (keys) in this {@code Properties} object. */ public Enumeration<?> propertyNames() { Hashtable<Object, Object> selected = new Hashtable<Object, Object>(); selectProperties(selected, false); return selected.keys(); }
/** * Returns all of the property names (keys) in this {@code Properties} object. */ public Enumeration<?> propertyNames() { Hashtable<Object, Object> selected = new Hashtable<Object, Object>(); selectProperties(selected, false); return selected.keys(); }
/** * Returns all of the property names (keys) in this {@code Properties} object. */ public Enumeration<?> propertyNames() { Hashtable<Object, Object> selected = new Hashtable<Object, Object>(); selectProperties(selected, false); return selected.keys(); }
/** * Returns those property names (keys) in this {@code Properties} object for which * both key and value are strings. * * @return a set of keys in the property list * @since 1.6 */ public Set<String> stringPropertyNames() { Hashtable<String, Object> stringProperties = new Hashtable<String, Object>(); selectProperties(stringProperties, true); return Collections.unmodifiableSet(stringProperties.keySet()); }
/** * Returns all of the property names (keys) in this {@code Properties} object. */ public Enumeration<?> propertyNames() { Hashtable<Object, Object> selected = new Hashtable<Object, Object>(); selectProperties(selected, false); return selected.keys(); }
/** * Returns all of the property names (keys) in this {@code Properties} object. */ public Enumeration<?> propertyNames() { Hashtable<Object, Object> selected = new Hashtable<Object, Object>(); selectProperties(selected, false); return selected.keys(); }
/** * Returns those property names (keys) in this {@code Properties} object for which * both key and value are strings. * * @return a set of keys in the property list * @since 1.6 */ public Set<String> stringPropertyNames() { Hashtable<String, Object> stringProperties = new Hashtable<String, Object>(); selectProperties(stringProperties, true); return Collections.unmodifiableSet(stringProperties.keySet()); }
/** * Returns those property names (keys) in this {@code Properties} object for which * both key and value are strings. * * @return a set of keys in the property list * @since 1.6 */ public Set<String> stringPropertyNames() { Hashtable<String, Object> stringProperties = new Hashtable<String, Object>(); selectProperties(stringProperties, true); return Collections.unmodifiableSet(stringProperties.keySet()); }
/** * Returns those property names (keys) in this {@code Properties} object for which * both key and value are strings. * * @return a set of keys in the property list * @since 1.6 */ public Set<String> stringPropertyNames() { Hashtable<String, Object> stringProperties = new Hashtable<String, Object>(); selectProperties(stringProperties, true); return Collections.unmodifiableSet(stringProperties.keySet()); }
/** * Returns those property names (keys) in this {@code Properties} object for which * both key and value are strings. * * @return a set of keys in the property list * @since 1.6 */ public Set<String> stringPropertyNames() { Hashtable<String, Object> stringProperties = new Hashtable<String, Object>(); selectProperties(stringProperties, true); return Collections.unmodifiableSet(stringProperties.keySet()); }
/** * Returns those property names (keys) in this {@code Properties} object for which * both key and value are strings. * * @return a set of keys in the property list * @since 1.6 */ public Set<String> stringPropertyNames() { Hashtable<String, Object> stringProperties = new Hashtable<String, Object>(); selectProperties(stringProperties, true); return Collections.unmodifiableSet(stringProperties.keySet()); }
private <K> void selectProperties(Hashtable<K, Object> selectProperties, final boolean isStringOnly) { if (defaults != null) { defaults.selectProperties(selectProperties, isStringOnly); } Enumeration<Object> keys = keys(); while (keys.hasMoreElements()) { @SuppressWarnings("unchecked") K key = (K) keys.nextElement(); if (isStringOnly && !(key instanceof String)) { // Only select property with string key and value continue; } Object value = get(key); selectProperties.put(key, value); } }
private <K> void selectProperties(Hashtable<K, Object> selectProperties, final boolean isStringOnly) { if (defaults != null) { defaults.selectProperties(selectProperties, isStringOnly); } Enumeration<Object> keys = keys(); while (keys.hasMoreElements()) { @SuppressWarnings("unchecked") K key = (K) keys.nextElement(); if (isStringOnly && !(key instanceof String)) { // Only select property with string key and value continue; } Object value = get(key); selectProperties.put(key, value); } }
private <K> void selectProperties(Hashtable<K, Object> selectProperties, final boolean isStringOnly) { if (defaults != null) { defaults.selectProperties(selectProperties, isStringOnly); } Enumeration<Object> keys = keys(); while (keys.hasMoreElements()) { @SuppressWarnings("unchecked") K key = (K) keys.nextElement(); if (isStringOnly && !(key instanceof String)) { // Only select property with string key and value continue; } Object value = get(key); selectProperties.put(key, value); } }