All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thoughtworks.xstream.tools.benchmark.Target Maven / Gradle / Ivy

There is a newer version: 1.4.20
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy