|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.digester.annotations.internal.RuleSetCache
public final class RuleSetCache
Simple in-memory LRU cache implementation.
Constructor Summary | |
---|---|
RuleSetCache()
|
Method Summary | |
---|---|
boolean |
containsKey(Class<?> key)
Returns true if this cache contains a mapping for the specified key. |
FromAnnotationsRuleSet |
get(Class<?> key)
Returns the value to which the specified key is cached, or null if this cache contains no mapping for the key. |
void |
put(Class<?> key,
FromAnnotationsRuleSet value)
Associates the specified value with the specified key in this cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleSetCache()
Method Detail |
---|
public boolean containsKey(Class<?> key)
key
- key whose presence in this map is to be tested.
public FromAnnotationsRuleSet get(Class<?> key)
key
- the key has to be checked it is present, it must not be null.
public void put(Class<?> key, FromAnnotationsRuleSet value)
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |