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
|
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 static AccessEvent forKey(long key)
public static AccessEvent forKeyAndWeight(long key, int weight)
public static AccessEvent forKeyAndPenalties(long key, double hitPenalty, double missPenalty)