public abstract class PropertyBase extends Object implements PropertyConfig
| Constructor and Description |
|---|
PropertyBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBool(String key,
boolean defaultValue) |
Date |
getDate(String key) |
Timestamp |
getDateTime(String key) |
double |
getDouble(String key,
double defaultValue) |
float |
getFloat(String key,
float defaultValue) |
int |
getInt(String key,
int defaultValue) |
long |
getLong(String key,
long defaultValue) |
boolean |
getRequiredBool(String key) |
Date |
getRequiredDate(String key) |
Timestamp |
getRequiredDateTime(String key) |
double |
getRequiredDouble(String key) |
float |
getRequiredFloat(String key) |
int |
getRequiredInt(String key) |
long |
getRequiredLong(String key) |
String |
getRequiredString(String key) |
Time |
getRequiredTime(String key) |
abstract String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
Time |
getTime(String key) |
void |
put(String key,
boolean value) |
void |
put(String key,
Boolean value) |
void |
put(String key,
Date value) |
void |
put(String key,
double value) |
void |
put(String key,
Double value) |
void |
put(String key,
float value) |
void |
put(String key,
Float value) |
void |
put(String key,
int value) |
void |
put(String key,
Integer value) |
void |
put(String key,
long value) |
void |
put(String key,
Long value) |
void |
put(String key,
Time value) |
void |
put(String key,
Timestamp value) |
abstract void |
putString(String key,
String value) |
public abstract String getString(String key)
getString in interface PropertyConfigpublic String getString(String key, String defaultValue)
getString in interface PropertyConfigpublic String getRequiredString(String key) throws NullPointerException
getRequiredString in interface PropertyConfigNullPointerExceptionpublic boolean getBool(String key, boolean defaultValue)
getBool in interface PropertyConfigpublic boolean getRequiredBool(String key) throws NullPointerException, BoolFormatException
getRequiredBool in interface PropertyConfigNullPointerExceptionBoolFormatExceptionpublic int getInt(String key, int defaultValue)
getInt in interface PropertyConfigpublic int getRequiredInt(String key) throws NullPointerException, NumberFormatException
getRequiredInt in interface PropertyConfigNullPointerExceptionNumberFormatExceptionpublic long getLong(String key, long defaultValue)
getLong in interface PropertyConfigpublic long getRequiredLong(String key) throws NullPointerException, NumberFormatException
getRequiredLong in interface PropertyConfigNullPointerExceptionNumberFormatExceptionpublic float getFloat(String key, float defaultValue)
getFloat in interface PropertyConfigpublic float getRequiredFloat(String key) throws NullPointerException, NumberFormatException
getRequiredFloat in interface PropertyConfigNullPointerExceptionNumberFormatExceptionpublic double getDouble(String key, double defaultValue)
getDouble in interface PropertyConfigpublic double getRequiredDouble(String key) throws NullPointerException, NumberFormatException
getRequiredDouble in interface PropertyConfigNullPointerExceptionNumberFormatExceptionpublic Date getDate(String key)
getDate in interface PropertyConfigpublic Date getRequiredDate(String key) throws NullPointerException, DateFormatException
getRequiredDate in interface PropertyConfigNullPointerExceptionDateFormatExceptionpublic Time getTime(String key)
getTime in interface PropertyConfigpublic Time getRequiredTime(String key) throws NullPointerException, DateFormatException
getRequiredTime in interface PropertyConfigNullPointerExceptionDateFormatExceptionpublic Timestamp getDateTime(String key)
getDateTime in interface PropertyConfigpublic Timestamp getRequiredDateTime(String key) throws NullPointerException, DateFormatException
getRequiredDateTime in interface PropertyConfigNullPointerExceptionDateFormatExceptionpublic void put(String key, boolean value)
public void put(String key, int value)
public void put(String key, long value)
public void put(String key, float value)
public void put(String key, double value)
Copyright © 2017. All rights reserved.