public abstract class DynamicSetProperty<T> extends Object
Constructor and Description |
---|
DynamicSetProperty(String propName,
Set<T> defaultValue) |
DynamicSetProperty(String propName,
Set<T> defaultValue,
String delimiterRegex) |
DynamicSetProperty(String propName,
String defaultValue) |
DynamicSetProperty(String propName,
String defaultValue,
String delimiterRegex) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(Runnable callback)
Add the callback to be triggered when the value of the property is changed
|
protected abstract T |
from(String value) |
Set<T> |
get() |
long |
getChangedTimestamp()
Gets the time (in milliseconds past the epoch) when the property
was last set/changed.
|
protected void |
load() |
protected void |
propertyChanged() |
public DynamicSetProperty(String propName, String defaultValue, String delimiterRegex)
public DynamicSetProperty(String propName, Set<T> defaultValue, String delimiterRegex)
protected void propertyChanged()
protected void load()
public long getChangedTimestamp()
public void addCallback(Runnable callback)
callback
- Copyright © 2020. All Rights Reserved.