|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.batch.index.Cache<V>
public class Cache<V>
This cache is not thread-safe, due to direct usage of Exchange
| Nested Class Summary | |
|---|---|
static class |
Cache.Entry<V>
|
| Method Summary | |
|---|---|
void |
clear()
Clears the default as well as all group caches. |
Cache<V> |
clear(Object key)
Removes everything in the specified group. |
Cache<V> |
clear(Object[] key)
|
Cache<V> |
clear(Object firstKey,
Object secondKey)
|
Cache<V> |
clear(Object firstKey,
Object secondKey,
Object thirdKey)
|
boolean |
containsKey(Object key)
|
boolean |
containsKey(Object[] key)
|
boolean |
containsKey(Object firstKey,
Object secondKey)
|
boolean |
containsKey(Object firstKey,
Object secondKey,
Object thirdKey)
|
Iterable<Cache.Entry<V>> |
entries()
|
Iterable<Cache.Entry<V>> |
entries(Object firstKey)
|
V |
get(Object key)
Returns the value object associated with keys, or null if not found. |
V |
get(Object[] key)
Returns the value object associated with keys, or null if not found. |
V |
get(Object firstKey,
Object secondKey)
Returns the value object associated with keys, or null if not found. |
V |
get(Object firstKey,
Object secondKey,
Object thirdKey)
Returns the value object associated with keys, or null if not found. |
Set<Object> |
keySet()
Returns the set of keys associated with this cache. |
Set |
keySet(Object key)
Returns the set of cache keys associated with this group. |
Set |
keySet(Object firstKey,
Object secondKey)
|
Cache<V> |
put(Object[] key,
V value)
|
Cache<V> |
put(Object firstKey,
Object secondKey,
Object thirdKey,
V value)
|
Cache<V> |
put(Object firstKey,
Object secondKey,
V value)
|
Cache<V> |
put(Object key,
V value)
|
boolean |
remove(Object key)
|
boolean |
remove(Object[] key)
|
boolean |
remove(Object firstKey,
Object secondKey)
|
boolean |
remove(Object firstKey,
Object secondKey,
Object thirdKey)
|
Iterable<V> |
values()
Lazy-loading values |
Iterable<V> |
values(Object firstKey)
Lazy-loading values for a given key |
Iterable<V> |
values(Object firstKey,
Object secondKey)
Lazy-loading values for given keys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Cache<V> put(Object key,
V value)
public Cache<V> put(Object firstKey,
Object secondKey,
V value)
public Cache<V> put(Object firstKey,
Object secondKey,
Object thirdKey,
V value)
public Cache<V> put(Object[] key,
V value)
public V get(Object key)
@CheckForNull
public V get(Object firstKey,
Object secondKey)
@CheckForNull
public V get(Object firstKey,
Object secondKey,
Object thirdKey)
@CheckForNull public V get(Object[] key)
public boolean containsKey(Object key)
public boolean containsKey(Object firstKey,
Object secondKey)
public boolean containsKey(Object firstKey,
Object secondKey,
Object thirdKey)
public boolean containsKey(Object[] key)
public boolean remove(Object key)
public boolean remove(Object firstKey,
Object secondKey)
public boolean remove(Object firstKey,
Object secondKey,
Object thirdKey)
public boolean remove(Object[] key)
public Cache<V> clear(Object key)
group - The group name.
public Cache<V> clear(Object firstKey,
Object secondKey)
public Cache<V> clear(Object firstKey,
Object secondKey,
Object thirdKey)
public Cache<V> clear(Object[] key)
public void clear()
public Set keySet(Object key)
group - The group.
public Set keySet(Object firstKey,
Object secondKey)
public Set<Object> keySet()
public Iterable<V> values(Object firstKey,
Object secondKey)
public Iterable<V> values(Object firstKey)
public Iterable<V> values()
public Iterable<Cache.Entry<V>> entries()
public Iterable<Cache.Entry<V>> entries(Object firstKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||