Groovy 2.2.0

org.codehaus.groovy.runtime.memoize
[Java] Class NullProtectionStorage

java.lang.Object
  org.codehaus.groovy.runtime.memoize.NullProtectionStorage
All Implemented Interfaces:
ProtectionStorage

public final class NullProtectionStorage
extends 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.

Authors:
Vaclav Pech


Method Summary
void touch(Object key, Object value)

Does nothing

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

touch

public void touch(Object key, Object value)
Does nothing
Parameters:
key - The key of the element to renew
value - A value to newly associate with the key


 

Copyright © 2003-2013 The Codehaus. All rights reserved.