Groovy Documentation

org.linkedin.glu.provisioner.impl.planner
[Groovy] Class ModifiedProperty

java.lang.Object
  org.linkedin.glu.provisioner.impl.planner.ModifiedProperty

class ModifiedProperty

Describes a property that has been modified author: Riccardo Ferretti created: Jul 27, 2009


Property Summary
java.lang.String key

the key of the property

java.lang.String newValue

the new value of the property

java.lang.String oldValue

The old value of the property

 
Constructor Summary
ModifiedProperty(java.lang.String key, java.lang.String oldValue, java.lang.String newValue)

ModifiedProperty(java.lang.Object args)

 
Method Summary
static java.util.Map compare(java.util.Map oldProperties, java.util.Map newProperties)

Compares the given map (key->value) of properties and returns a map of all the different ones, where the key is the key of the property and the value contains information about the change

java.lang.Boolean toBeAdded()

Return if the property was not present before and needs to be added now

java.lang.Boolean toBeRemoved()

Return if the property was present before but needs to be removed now

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

key

final java.lang.String key
the key of the property


newValue

final java.lang.String newValue
the new value of the property


oldValue

final java.lang.String oldValue
The old value of the property


 
Constructor Detail

ModifiedProperty

ModifiedProperty(java.lang.String key, java.lang.String oldValue, java.lang.String newValue)


ModifiedProperty

ModifiedProperty(java.lang.Object args)


 
Method Detail

compare

static java.util.Map compare(java.util.Map oldProperties, java.util.Map newProperties)
Compares the given map (key->value) of properties and returns a map of all the different ones, where the key is the key of the property and the value contains information about the change


toBeAdded

java.lang.Boolean toBeAdded()
Return if the property was not present before and needs to be added now


toBeRemoved

java.lang.Boolean toBeRemoved()
Return if the property was present before but needs to be removed now


 

Groovy Documentation