edu.uci.eecs.doc.clepsydra.cache
Class MethodCacheStrategy.HitRatio
java.lang.Object
edu.uci.eecs.doc.clepsydra.cache.MethodCacheStrategy.HitRatio
- Enclosing interface:
- MethodCacheStrategy
public static class MethodCacheStrategy.HitRatio
- extends Object
A simple encapsulation of a cache hit ratio.
- Author:
- Trevor Harmon
MethodCacheStrategy.HitRatio
public MethodCacheStrategy.HitRatio(int hits,
int misses)
- Creates a new hit ratio object. The number of hits plus the number of misses
should add up to the total number of invocations.
- Parameters:
hits
- the number of guaranteed hits of this invocationmisses
- the number of guaranteed misses of this invocation
getHits
public int getHits()
getMisses
public int getMisses()
toString
public String toString()
- Overrides:
toString
in class Object