public class LongSystemProperty extends AbstractSystemProperty<Long>
SystemProperty
interface
for an Integer
type.name, NULL_STRING
Constructor and Description |
---|
LongSystemProperty(String name)
Initializes the instance with a system property name.
|
Modifier and Type | Method and Description |
---|---|
Long |
getValue()
Determines the value of the system property specified by
SystemProperty.getName() . |
Long |
getValue(Long defaultValue)
Determines the value of the system property specified by
SystemProperty.getName() . |
clear, getName, setValue
public LongSystemProperty(String name)
name
- name of the system property that is wrapped by this instance.
Must not be null
nor empty.public Long getValue()
SystemProperty.getName()
.null
if the specified
system property was not found or the value could not be parsed.public Long getValue(Long defaultValue)
SystemProperty.getName()
.defaultValue
- will be returned if the specified system property was not
found.defaultValue
if the
specified system property was not found or the value could not be
parsed.Copyright © 2003–2021 XDEV Software. All rights reserved.