public final class PropertyLong extends Object
PropertyLong.hasValue()
to test whether the property has the value or not.Constructor and Description |
---|
PropertyLong(Long l)
Create the long property.
|
Modifier and Type | Method and Description |
---|---|
long |
getValue()
Get the property value.
|
long |
getValueOr(long defaultValue)
Get the property value or the provided value when the property does not have one.
|
boolean |
hasValue()
Test whether the property has a value.
|
public PropertyLong(Long l)
l
- when null
, then the property is undefined.public boolean hasValue()
public long getValue()
0
.0
when not set.public long getValueOr(long defaultValue)
defaultValue
- The default value to return when the property is undefined.