public class ConfigChange extends Object
Constructor and Description |
---|
ConfigChange()
Creates a new instance from
ConfigChange using empty JSON Object for both the old and new configuration. |
ConfigChange(ConfigChange other)
Creates a new instance of
ConfigChange copying the values stored in the given object. |
ConfigChange(JsonObject json)
Creates a new
ConfigChange instance from the given JSON object. |
ConfigChange(JsonObject prevConf,
JsonObject newConf)
Creates a new
ConfigChange instance. |
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 null
public 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.ConfigChange
public 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.ConfigChange
public JsonObject toJson()
ConfigChange
instance.Copyright © 2023 Eclipse. All rights reserved.