Example usage for org.apache.commons.collections4.keyvalue MultiKey MultiKey

List of usage examples for org.apache.commons.collections4.keyvalue MultiKey MultiKey

Introduction

In this page you can find the example usage for org.apache.commons.collections4.keyvalue MultiKey MultiKey.

Prototype

public MultiKey(final K[] keys) 

Source Link

Document

Constructor taking an array of keys which is cloned.

Usage

From source file:com.birschl.cache.providers.HashMapCacheProvider.java

public Object getCachedResult(Object[] keys) {
    checkExpiration();
    checkNumArguments(keys);
    return cache.get(new MultiKey<Object>(keys));
}

From source file:com.birschl.cache.providers.HashMapCacheProvider.java

public void put(Object[] keys, Object value) {
    checkExpiration();
    checkNumArguments(keys);
    cache.put(new MultiKey<Object>(keys), value);
}

From source file:com.birschl.cache.providers.HashMapCacheProvider.java

public boolean contains(Object[] keys) {
    checkExpiration();/* ww  w.j a v a  2  s  .c  o m*/
    checkNumArguments(keys);
    return cache.containsKey(new MultiKey<Object>(keys));
}