Class CharacterCountMetric

java.lang.Object
com.thoughtworks.xstream.tools.benchmark.metrics.CharacterCountMetric
All Implemented Interfaces:
Metric

public class CharacterCountMetric extends Object implements Metric
Deprecated.
As of 1.4.9 use JMH instead
Determines the amount of a special characters.
Since:
1.4
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final char
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Whether a big result is better for this metric.
    double
    run(Product product, Target target)
    Deprecated.
    Run the test and produce a metric.
    double
    run(Product product, Object object)
    Deprecated.
    since 1.3
    Deprecated.
     
    Deprecated.
    The unit the metric is recorded in (for reporting purposes).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • ch

      private final char ch
      Deprecated.
  • Constructor Details

    • CharacterCountMetric

      public CharacterCountMetric(char ch)
      Deprecated.
  • Method Details

    • run

      public double run(Product product, Target target) throws Exception
      Deprecated.
      Description copied from interface: Metric
      Run the test and produce a metric.
      Specified by:
      run in interface Metric
      Parameters:
      product - Product to use in test.
      target - A target to use against the product.
      Returns:
      The resulting metric (e.g. 12.22).
      Throws:
      Exception - If this metric could not be obtained. This will be reported back to the Reporter.
    • run

      public double run(Product product, Object object) throws Exception
      Deprecated.
      since 1.3
      Description copied from interface: Metric
      Run the test and produce a metric.
      Specified by:
      run in interface Metric
      Parameters:
      product - Product to use in test.
      object - A object to use against the product.
      Returns:
      The resulting metric (e.g. 12.22).
      Throws:
      Exception - If this metric could not be obtained. This will be reported back to the Reporter.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • unit

      public String unit()
      Deprecated.
      Description copied from interface: Metric
      The unit the metric is recorded in (for reporting purposes). e.g. "ms" or "bytes".
      Specified by:
      unit in interface Metric
    • biggerIsBetter

      public boolean biggerIsBetter()
      Deprecated.
      Description copied from interface: Metric
      Whether a big result is better for this metric.
      Specified by:
      biggerIsBetter in interface Metric