public interface CacheInterface
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object key)
Returns the value to which the specified key is cached, or null if the
cache dosn't contain the key.
|
int |
maxSize()
Returns the cache max size.
|
Object |
put(Object key,
Object value)
Associates the specified value with the specified key in the cache.
|
List<Object> |
removeValues(Object value)
Removes all objects with the value from cache map.
|
int |
size()
Returns the cache size.
|
boolean |
test()
This method should be used for testing.
|
Collection<Object> |
values() |
Object get(Object key)
key - the key whose associated value is to be returnedObject put(Object key, Object value)
key - with which the specified value is to be associatedvalue - to be associated with the specified keyList<Object> removeValues(Object value)
value - int size()
int maxSize()
boolean test()
Collection<Object> values()
Copyright © 2014. All rights reserved.