org.codehaus.groovy.runtime.memoize.MemoizeCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotless-ext-greclipse Show documentation
Show all versions of spotless-ext-greclipse Show documentation
Groovy Eclipse's formatter bundled for Spotless
The newest version!
package org.codehaus.groovy.runtime.memoize;
/**
* Represents a memoize cache with its essential methods
* @param type of the keys
* @param type of the values
*
* @author Vaclav Pech
*/
public interface MemoizeCache {
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();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy