Package com.dkt.graphics.utils.config
Interface ConfigEvent
public interface ConfigEvent
These events are triggered from the
Config class each time something
is added, updated or removed.- Author:
- Federico Vera <[email protected]>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionRetrieves thekeythat triggered the eventintRetrieves the type of change that has happenedRetrieves the new value associated with this keyRetrieves the old value associated with this keybooleanTells if the value affects a given key, basically:
-
Field Details
-
Method Details
-
getChangeType
int getChangeType()Retrieves the type of change that has happened- Returns:
- type of change
- See Also:
-
isKey
Tells if the value affects a given key, basically:if (evt.isKey("my.key")){ //... } is equivalent to: if (evt.getChangedKey().equals("my.key") { //... }- Parameters:
key- thekeyto compare- Returns:
trueifkeyis the key that triggered the event andfalseotherwise- See Also:
-
getChangedKey
String getChangedKey()Retrieves thekeythat triggered the event- Returns:
- key
-
getOldValue
Object getOldValue()Retrieves the old value associated with this key- Returns:
- old value
-
getNewValue
Object getNewValue()Retrieves the new value associated with this key- Returns:
- new value
-