com.google.caliper
Class Measurement

java.lang.Object
  extended by com.google.caliper.Measurement
All Implemented Interfaces:
Serializable

public final class Measurement
extends Object
implements Serializable

Represents a measurement of a single run of a benchmark.

See Also:
Serialized Form

Field Summary
static Comparator<Measurement> SORT_BY_NANOS
           
static Comparator<Measurement> SORT_BY_UNITS
           
 
Constructor Summary
Measurement(Map<String,Integer> unitNames, double raw, double processed)
           
 
Method Summary
 boolean equals(Object o)
           
 double getProcessed()
           
 double getRaw()
           
 Map<String,Integer> getUnitNames()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SORT_BY_NANOS

public static final Comparator<Measurement> SORT_BY_NANOS

SORT_BY_UNITS

public static final Comparator<Measurement> SORT_BY_UNITS
Constructor Detail

Measurement

public Measurement(Map<String,Integer> unitNames,
                   double raw,
                   double processed)
Method Detail

getUnitNames

public Map<String,Integer> getUnitNames()

getRaw

public double getRaw()

getProcessed

public double getProcessed()

equals

public boolean equals(Object o)
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.