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;
13:
14: /**
15: * Provides a target object to use in the metric. This could be a very small object or a large
16: * complicated graph.
17: *
18: * Also used to test if the object is equal to another instance (as some object's don't provide
19: * sensible equals() methods.
20: *
21: * @author Joe Walnes
22: * @see Harness
23: */
24: public interface Target {
25:
26: /**
27: * The target to use in the metric.
28: */
29: Object target();
30:
31: /**
32: * Check whether the object for this target is equal to another one.
33: */
34: boolean isEqual(Object other);
35:
36: }
|