com.google.caliper.runner
Class BenchmarkMethod

java.lang.Object
  extended by com.google.caliper.runner.BenchmarkMethod

public final class BenchmarkMethod
extends Object

A method of a benchmark class that is recognized (by the appropriate Instrument) as a method that should undergo benchmark testing; for example, for the default instrument ("time"), methods that begin with the string "time" are recognized.


Constructor Summary
BenchmarkMethod(BenchmarkClass benchmarkClass, Method method, String shortName)
           
 
Method Summary
 String className()
           
 boolean equals(Object object)
           
 int hashCode()
           
 Method method()
           
 String name()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BenchmarkMethod

public BenchmarkMethod(BenchmarkClass benchmarkClass,
                       Method method,
                       String shortName)
Method Detail

name

public String name()

className

public String className()

method

public Method method()

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.