public class AccessEvent extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static AccessEvent |
forKey(long key)
Returns an event for the given key.
|
static AccessEvent |
forKeyAndPenalties(long key,
double hitPenalty,
double missPenalty)
Returns an event for the given key and penalties.
|
static AccessEvent |
forKeyAndWeight(long key,
int weight)
Returns an event for the given key and weight.
|
int |
hashCode() |
double |
hitPenalty()
Returns the hit penalty of the entry.
|
boolean |
isPenaltyAware()
Returns if the trace supplies the hit/miss penalty for this entry.
|
long |
key()
Returns the key.
|
double |
missPenalty()
Returns the miss penalty of the entry.
|
String |
toString() |
int |
weight()
Returns the weight of the entry.
|
public long key()
public int weight()
public double hitPenalty()
public double missPenalty()
public boolean isPenaltyAware()
public static AccessEvent forKey(long key)
public static AccessEvent forKeyAndWeight(long key, int weight)
public static AccessEvent forKeyAndPenalties(long key, double hitPenalty, double missPenalty)