|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsleep.engine.types.HashContainer
sleep.engine.types.OrderedHashContainer
public class OrderedHashContainer
Field Summary | |
---|---|
protected SleepClosure |
missPolicy
policy function for what to do when a miss occurs |
protected SleepClosure |
removalPolicy
policy function for what to do when a hit occurs |
protected boolean |
shouldClean
|
Fields inherited from class sleep.engine.types.HashContainer |
---|
values |
Constructor Summary | |
---|---|
OrderedHashContainer(int capacity,
float loadfactor,
boolean type)
constructs an ordered hash container based on the specified items |
Method Summary | |
---|---|
Scalar |
getAt(Scalar key)
Retrieves a scalar from the hashtable. |
ScalarArray |
keys()
Returns all of the keys within the scalar hash. |
protected boolean |
removeEldestEntryCheck(Map.Entry eldest)
|
void |
setMissPolicy(SleepClosure policy)
set the miss policy for this hash (determines default value of missed value) |
void |
setRemovalPolicy(SleepClosure policy)
set the removal policy for this hash (decides if an entry should be removed or not |
Methods inherited from class sleep.engine.types.HashContainer |
---|
getData, remove, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean shouldClean
protected SleepClosure missPolicy
protected SleepClosure removalPolicy
Constructor Detail |
---|
public OrderedHashContainer(int capacity, float loadfactor, boolean type)
Method Detail |
---|
public void setRemovalPolicy(SleepClosure policy)
public void setMissPolicy(SleepClosure policy)
protected boolean removeEldestEntryCheck(Map.Entry eldest)
public ScalarArray keys()
ScalarHash
keys
in interface ScalarHash
keys
in class HashContainer
public Scalar getAt(Scalar key)
ScalarHash
getAt
in interface ScalarHash
getAt
in class HashContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |