01: /*
02: * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
03: * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
04: * under the terms of the GNU Lesser General Public License as published by the Free Software
05: * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
06: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
07: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
08: */
09: package net.refractions.udig.project.render;
10:
11: /**
12: * TODO Purpose of net.refractions.udig.project.render
13: * <p>
14: * </p>
15: *
16: * @author Jesse
17: * @since 1.0.0
18: */
19: public class DeltaEvent<T> {
20: private T legacy = null;
21:
22: private T current = null;
23:
24: /**
25: * Creates an new instance of DeltaEvent
26: *
27: * @param legacy a copy of the state of the changed object before the change occured
28: * @param current a copy of the state of the changed object after the change occured
29: */
30: public DeltaEvent(T legacy, T current) {
31: this .legacy = legacy;
32: this .current = current;
33: }
34:
35: /**
36: * Returns a copy of the state of the changed object before the change occured
37: *
38: * @return a copy of the state of the changed object before the change occured
39: * @uml.property name="legacy"
40: */
41: public T getLegacy() {
42: return legacy;
43: }
44:
45: /**
46: * Returns a copy of the state of the changed object after the change occured
47: *
48: * @return a copy of the state of the changed object after the change occured
49: * @uml.property name="current"
50: */
51: public T getCurrent() {
52: return current;
53: }
54:
55: }
|