|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.misc.LyLastValues
public class LyLastValues
Utility class used to keep a list of last accessed values corresponding to keys.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
DEFAULT_SIZE
Default number of elements stored into the list. |
static java.lang.Object |
NOT_FOUND
Default object returned when the object corresponding to a key is not found. |
Constructor Summary | |
---|---|
LyLastValues()
Constructor. |
|
LyLastValues(int size)
Constructor. |
Method Summary | |
---|---|
void |
addValue(java.lang.Object key,
java.lang.Object value)
Adds a pair (key, value) to last accessed values list. |
java.lang.Object |
getValue(java.lang.Object key)
Finds the value corresponding to the given key. |
java.lang.Object |
removeValue(java.lang.Object key)
Removes value corresponding to given key. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static int DEFAULT_SIZE
public static final java.lang.Object NOT_FOUND
Constructor Detail |
---|
public LyLastValues()
LyLastValues(DEFAULT_SIZE)
public LyLastValues(int size)
size
- the number of objects to storeMethod Detail |
---|
public void addValue(java.lang.Object key, java.lang.Object value)
key
- the key to addvalue
- the value to addpublic java.lang.Object getValue(java.lang.Object key)
key
- the key
NOT_FOUND
otherwise.public java.lang.Object removeValue(java.lang.Object key)
key
- the key
NOT_FOUND
otherwise.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |