01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package test;
10:
11: /**
12: * @version $Revision: 1.3 $
13: */
14: public class MutableObject {
15: private Object object;
16:
17: public MutableObject(Object object) {
18: this .object = object;
19: }
20:
21: public synchronized Object get() {
22: return object;
23: }
24:
25: public synchronized void set(Object object) {
26: this.object = object;
27: }
28: }
|