home | career | drupal | java | mac | mysql | perl | scala | uml | unix

Groovy example source code file (MemoizeCache.java)

This example Groovy source code file (MemoizeCache.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Groovy tags/keywords

memoizecache, memoizecache, v, v

The Groovy MemoizeCache.java source code

package org.codehaus.groovy.runtime.memoize;

 * Represents a memoize cache with its essential methods
 * @param <K> type of the keys
 * @param <V> type of the values
 * @author Vaclav Pech
public interface MemoizeCache<K, V> {

    V put(K key, V value);

    V get(K key);

     * Invoked when some of the held SoftReferences have been evicted by the garbage collector and so should be removed from the cache.
     * The implementation must ensure that concurrent invocations of all methods on the cache may occur from other threads
     * and thus should protect any shared resources.
    void cleanUpNullReferences();

Other Groovy examples (source code examples)

Here is a short list of links related to this Groovy MemoizeCache.java source code file:

new blog posts


Copyright 1998-2014 Alvin Alexander, alvinalexander.com
All Rights Reserved.