com.thoughtworks.xstream.tools.benchmark.Target Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xstream-benchmark Show documentation
Show all versions of xstream-benchmark Show documentation
Benchmark suite of XStream.
package com.thoughtworks.xstream.tools.benchmark;
/**
* Provides a target object to use in the metric. This could be a very small object or a large
* complicated graph.
*
* Also used to test if the object is equal to another instance (as some object's don't provide
* sensible equals() methods.
*
* @author Joe Walnes
* @see Harness
*/
public interface Target {
/**
* The target to use in the metric.
*/
Object target();
/**
* Check whether the object for this target is equal to another one.
*/
boolean isEqual(Object other);
}