public class PropertiesImpl extends AbstractMapDerivedPropertiesBase implements Properties
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
concurrent, map| Constructor and Description |
|---|
PropertiesImpl(boolean concurrent) |
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, remove, size, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitclear, containsKey, size, toStringprivate static final long serialVersionUID
public Properties init()
AbstractMapDerivedPropertiesBaseinit in class AbstractMapDerivedPropertiesBasepublic String get(String key)
get in interface Propertiespublic String get(String key, String defaultVal)
get in interface Propertiespublic List<String> getValues(String key)
getValues in interface Propertiespublic Comment getComments(String key)
getComments in interface Propertiespublic char getSeparator(String key)
getSeparator in interface Propertiespublic void forEach(BiConsumer<String,ValueModel> action)
forEach in interface Propertiespublic void put(String key, Comment comment, String... values)
put in interface Propertiespublic void put(String key, char separator, Comment comment, String... values)
put in interface Propertiespublic void put(KeyValueModel model)
put in interface Propertiespublic void put(String key, ValueModel model)
put in interface Propertiespublic boolean hasNonEmptyValue(String key)
hasNonEmptyValue in interface Propertiespublic void deleteKey(String key)
deleteKey in interface Propertiespublic Properties merge(Properties props)
merge in interface Propertiespublic Properties slice(String root)
slice in interface Propertiespublic Map<String,ValueModel> asMap()
asMap in interface Propertiespublic Map<String,String> asFlattenedMap()
asFlattenedMap in interface Propertiespublic List<KeyValueModel> asList()
asList in interface Propertiespublic Properties asLegacy()
asLegacy in interface Propertiespublic String toXML()
toXML in interface Propertiespublic String toJSON()
toJSON in interface Propertiespublic String toYAML()
toYAML in interface Propertiespublic ValueModel getValueModel(String key)
getValueModel in interface Propertiespublic void put(String key, String... values)
put in interface Propertiespublic Properties asciiToNative()
asciiToNative in interface Propertiespublic Properties nativeToAscii()
nativeToAscii in interface Propertiespublic List<String> getMatchingKeys(String regex)
getMatchingKeys in interface Propertiespublic boolean hasKeyLike(String partial)
hasKeyLike in interface Propertiespublic Sugar sugar()
sugar in interface PropertiesCopyright © 2011–2016 David R. Smith. All rights reserved.