Example usage for org.apache.commons.collections4.map LRUMap get

List of usage examples for org.apache.commons.collections4.map LRUMap get

Introduction

In this page you can find the example usage for org.apache.commons.collections4.map LRUMap get.

Prototype

@Override
public V get(final Object key) 

Source Link

Document

Gets the value mapped to the key specified.

Usage

From source file:org.apache.jena.permissions.impl.SecuredItemImpl.java

/**
 * get the cached value./*from  w w  w  . java 2 s.co  m*/
 * 
 * @param key
 *            The key to look for.
 * @return the value of the security check or <code>null</code> if the value
 *         has not been cached.
 */
private Boolean cacheGet(final CacheKey key) {
    final LRUMap<CacheKey, Boolean> cache = SecuredItemImpl.CACHE.get();
    return (cache == null) ? null : (Boolean) cache.get(key);
}