public class PropertyChange extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PREF_RESET
The change is a reset of the property value.
|
static int |
PREF_UPDATE
The change is an update of the property value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Return the property key
|
int |
getType()
Return the property change type.
|
List<String> |
getValue()
Return the new value or null in case of a property reset.
|
static PropertyChange |
newReset(String key)
Create a new property reset.
|
static PropertyChange |
newUpdate(String key,
List<String> value)
Create a new property update, the list of values will be clone for safety.
|
static PropertyChange |
newUpdate(String key,
String value)
Create a new property update, the list of values will be clone for safety.
|
static PropertyChange |
newUpdate(String key,
String[] value)
Create a new property update, the list of values will be clone for safety.
|
public static final int PREF_UPDATE
public static final int PREF_RESET
public static PropertyChange newUpdate(String key, String value)
key - the property keyvalue - the property valuepublic static PropertyChange newUpdate(String key, String[] value)
key - the property keyvalue - the property valuepublic static PropertyChange newUpdate(String key, List<String> value)
key - the property keyvalue - the property valuepublic static PropertyChange newReset(String key)
key - the property keypublic int getType()
public String getKey()
Copyright © 2003-2021 GateIn. All Rights Reserved.