public class ConfigChange extends Object
| Constructor and Description | 
|---|
| ConfigChange()Creates a new instance from  ConfigChangeusing empty JSON Object for both the old and new configuration. | 
| ConfigChange(ConfigChange other)Creates a new instance of  ConfigChangecopying the values stored in the given object. | 
| ConfigChange(JsonObject json)Creates a new  ConfigChangeinstance from the given JSON object. | 
| ConfigChange(JsonObject prevConf,
            JsonObject newConf)Creates a new  ConfigChangeinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| JsonObject | getNewConfiguration() | 
| JsonObject | getPreviousConfiguration() | 
| ConfigChange | setNewConfiguration(JsonObject conf)Sets the new configuration. | 
| ConfigChange | setPreviousConfiguration(JsonObject conf)Sets the previous configuration. | 
| JsonObject | toJson() | 
public ConfigChange(JsonObject prevConf, JsonObject newConf)
ConfigChange instance.prevConf - the previous configuration, may be null. In this case, an empty JSON object is used.newConf - the new configuration, may be null. In this case, an empty JSON object is used.public ConfigChange()
ConfigChange using empty JSON Object for both the old and new configuration.public ConfigChange(ConfigChange other)
ConfigChange copying the values stored in the given object.other - the instance to copypublic ConfigChange(JsonObject json)
ConfigChange instance from the given JSON object.json - the json object, must not be nullpublic JsonObject getPreviousConfiguration()
null, but potentially emptypublic ConfigChange setPreviousConfiguration(JsonObject conf)
conf - the configuration, may be null. In this case an empty JSON object is used.ConfigChangepublic JsonObject getNewConfiguration()
null, but potentially empty.public ConfigChange setNewConfiguration(JsonObject conf)
conf - the new configuration, may be null. In this case, an empty JSON object is used.ConfigChangepublic JsonObject toJson()
ConfigChange instance.Copyright © 2021 Eclipse. All rights reserved.