com.google.caliper.runner
Class ParameterSet

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

public final class ParameterSet
extends Object

Represents all the injectable parameter fields of a single kind (@Param or @VmParam) found in a benchmark class. Has nothing to do with particular choices of values for these parameters (except that it knows how to find the default values).


Method Summary
static ParameterSet create(Class<? extends Benchmark> theClass, Class<? extends Annotation> annotationClass)
           
 com.google.common.collect.ImmutableSetMultimap<String,String> fillInDefaultsFor(com.google.common.collect.ImmutableSetMultimap<String,String> explicitValues)
           
 Parameter get(String name)
           
 void injectAll(Benchmark benchmark, Map<String,String> actualValues)
           
 Set<String> names()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ParameterSet create(Class<? extends Benchmark> theClass,
                                  Class<? extends Annotation> annotationClass)
                           throws InvalidBenchmarkException
Throws:
InvalidBenchmarkException

names

public Set<String> names()

get

public Parameter get(String name)

fillInDefaultsFor

public com.google.common.collect.ImmutableSetMultimap<String,String> fillInDefaultsFor(com.google.common.collect.ImmutableSetMultimap<String,String> explicitValues)

injectAll

public void injectAll(Benchmark benchmark,
                      Map<String,String> actualValues)


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