public abstract class AbstractSystemProperty<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Supplier<T> |
defaultValueSupplier |
protected String |
propertyName |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSystemProperty(String propertyName,
Supplier<T> defaultValueSupplier) |
protected |
AbstractSystemProperty(String propertyName,
T value) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearValue()
Clears the value of this system property.
|
protected abstract T |
fromString(String stringValue) |
String |
getName() |
T |
getValue()
Returns the value of this system property or the default if it's not set.
|
void |
setRawValue(String value) |
void |
setValue(T value)
Sets the value of this system property.
|
protected final String propertyName
protected AbstractSystemProperty(@Nonnull String propertyName, @Nonnull T value)
Copyright © 2024 Atlassian. All rights reserved.