public class ClusterPreferencesImpl extends Object implements ClusterPreferences
Modifier and Type | Field and Description |
---|---|
static ClusterPreferences |
EMPTY |
Constructor and Description |
---|
ClusterPreferencesImpl(Map<String,String> map) |
ClusterPreferencesImpl(Properties props) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String key,
boolean dflt) |
int |
getInt(String key,
int dflt) |
Map<String,String> |
getPreferences() |
String |
getString(String key) |
String |
getTrimmedString(String key,
String dflt)
Trims the value, returning dflt if the trimmed value is empty or null
|
Set<String> |
keys() |
public static final ClusterPreferences EMPTY
public ClusterPreferencesImpl(Properties props)
public Set<String> keys()
keys
in interface ClusterPreferences
public String getTrimmedString(String key, String dflt)
ClusterPreferences
getTrimmedString
in interface ClusterPreferences
public int getInt(String key, int dflt)
getInt
in interface ClusterPreferences
public String getString(String key)
getString
in interface ClusterPreferences
public boolean getBoolean(String key, boolean dflt)
getBoolean
in interface ClusterPreferences
Copyright © 2016 Actian Corporation. All Rights Reserved.