Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,String>> |
entrySet() |
String |
get(Object key) |
boolean |
getBooleanProperty(String name) |
boolean |
getBooleanProperty(String name,
boolean defaultValue) |
Collection<String> |
getChildrenNames(String parentKey)
Return all children property names of a parent property as a Collection
of String objects.
|
static JiveProperties |
getInstance()
Returns a singleton instance of JiveProperties.
|
String |
getProperty(String name,
String defaultValue) |
Collection<String> |
getPropertyNames()
Returns all property names as a Collection of String values.
|
void |
init()
For internal use only.
|
boolean |
isEmpty() |
Set<String> |
keySet() |
String |
put(String key,
String value) |
String |
put(String key,
String value,
boolean isEncrypted)
Saves a property, optionally encrypting it
|
void |
putAll(Map<? extends String,? extends String> t) |
String |
remove(Object key) |
int |
size() |
Collection<String> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public static JiveProperties getInstance()
public void init()
public boolean containsKey(Object key)
containsKey
in interface Map<String,String>
public boolean containsValue(Object value)
containsValue
in interface Map<String,String>
public Collection<String> getChildrenNames(String parentKey)
X.Y.A
,
X.Y.B
, and X.Y.C
, then the child properties of
X.Y
are X.Y.A
, X.Y.B
, and X.Y.C
. The method
is not recursive; ie, it does not return children of children.parentKey
- the name of the parent property.public Collection<String> getPropertyNames()
public String put(String key, String value, boolean isEncrypted)
key
- The name of the propertyvalue
- The value of the propertyisEncrypted
- true
to encrypt the property, true
to leave in plain textkey
, or null
if there was no mapping for
key
.public boolean getBooleanProperty(String name)
public boolean getBooleanProperty(String name, boolean defaultValue)
Copyright © 2003–2019 Ignite Realtime. All rights reserved.