01: /*
02: * Copyright (C) 2006 Joe Walnes.
03: * Copyright (C) 2006, 2007 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 15. July 2006 by Joe Walnes
11: */
12: package com.thoughtworks.xstream.tools.benchmark.targets;
13:
14: import com.thoughtworks.xstream.tools.benchmark.Target;
15:
16: import javax.swing.*;
17:
18: /**
19: * A Swing JTree instance, which is a suitably complex object graph.
20: *
21: * @author Joe Walnes
22: * @see com.thoughtworks.xstream.tools.benchmark.Harness
23: * @see Target
24: * @see JTree
25: */
26: public class JTreeTarget implements Target {
27:
28: private JTree jTree = new JTree();
29:
30: public String toString() {
31: return "JTree";
32: }
33:
34: public Object target() {
35: return jTree;
36: }
37:
38: public boolean isEqual(Object other) {
39: // TODO: Check if JTrees are equal. -Joe
40: return true;
41: }
42:
43: }
|