|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.perforce.p4java.util.PropertiesHelper
public class PropertiesHelper
Properties helper class with generally useful methods.
| Constructor Summary | |
|---|---|
PropertiesHelper()
|
|
| Method Summary | |
|---|---|
static String |
getProperty(Properties props,
String[] keys)
Return the first property string value found from the passed-in properties with the specified keys. |
static String |
getProperty(Properties props,
String[] keys,
String defaultValue)
Return the first property string value found from the passed-in properties with the specified keys. |
static int |
getPropertyAsInt(Properties props,
String[] keys,
int defaultValue)
Return the first property value found as an int, if possible. |
static long |
getPropertyAsLong(Properties props,
String[] keys,
long defaultValue)
Return the property value as a long, if possible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesHelper()
| Method Detail |
|---|
public static String getProperty(Properties props,
String[] keys)
public static String getProperty(Properties props,
String[] keys,
String defaultValue)
public static int getPropertyAsInt(Properties props,
String[] keys,
int defaultValue)
public static long getPropertyAsLong(Properties props,
String[] keys,
long defaultValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||