Convert boolean to integer in getIntegerValue()
This commit is contained in:
parent
0e03e7a542
commit
965d758eae
1 changed files with 2 additions and 0 deletions
|
@ -277,6 +277,8 @@ public final class Property implements IProperty, Serializable, Cloneable {
|
||||||
return ((Long) value).longValue ();
|
return ((Long) value).longValue ();
|
||||||
if (type == FLOAT)
|
if (type == FLOAT)
|
||||||
return ((Double) value).longValue ();
|
return ((Double) value).longValue ();
|
||||||
|
if (type == BOOLEAN)
|
||||||
|
return ((Boolean) value).booleanValue() ? 1 : 0;
|
||||||
try {
|
try {
|
||||||
return Long.parseLong (getStringValue());
|
return Long.parseLong (getStringValue());
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue