org.silverpeas.notification.jsondiff
Class Operation
java.lang.Object
org.silverpeas.notification.jsondiff.Operation
- All Implemented Interfaces:
- Serializable
public class Operation
- extends Object
- implements Serializable
An operation on a property.
- Author:
- ehugonnet
- See Also:
- Serialized Form
Operation
public Operation()
Operation
public Operation(Op type,
String path,
String value)
setOp
public void setOp(Op type)
setPath
public void setPath(String path)
setValue
public void setValue(String value)
getOp
public Op getOp()
getPath
public String getPath()
getValue
public String getValue()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
determineOperation
public static Operation determineOperation(String path,
String oldValue,
String newValue)
Copyright © 2016 Silverpeas. All Rights Reserved.