1 package net.sourceforge.rpgee.messaging;
2
3 import net.sourceforge.rpgee.Duplicatable;
4
5 public class PropertyChangedValue<T> implements Cloneable, Duplicatable{
6
7 private String property;
8 private T oldValue;
9 private T newValue;
10
11 public PropertyChangedValue(String _prop, T _old, T _new) {
12 property = _prop;
13 oldValue = _old;
14 newValue = _new;
15 }
16
17 public T getNewValue() {
18 return newValue;
19 }
20 public T getOldValue() {
21 return oldValue;
22 }
23 public String getProperty() {
24 return property;
25 }
26
27 public PropertyChangedValue<T> duplicate() {
28 PropertyChangedValue<T> clone = null;
29 try {
30 clone = (PropertyChangedValue<T>) this.clone();
31 } catch (CloneNotSupportedException e) {
32
33 }
34 return clone;
35 }
36 }