Class NullProtectionStorage
java.lang.Object
org.codehaus.groovy.runtime.memoize.NullProtectionStorage
public final class NullProtectionStorage
extends java.lang.Object
A NullObject pattern implementation for ProtectionStorage
 Doesn't protect any resources.
 Used when the user doesn't mind to eventually have the whole memoize cache emptied by gc.
- 
Constructor SummaryConstructors Constructor Description NullProtectionStorage()
- 
Method SummaryModifier and Type Method Description voidtouch(java.lang.Object key, java.lang.Object value)Does nothingMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
NullProtectionStoragepublic NullProtectionStorage()
 
- 
- 
Method Details- 
touchpublic void touch(java.lang.Object key, java.lang.Object value)Does nothing- Parameters:
- key- The key of the element to renew
- value- A value to newly associate with the key
 
 
-