Top Description Constructors Methods
org.codehaus.groovy.runtime.memoize

public final Class NullProtectionStorage

extends Object
implements ProtectionStorage
Class Inheritance
All Implemented Interfaces
org.codehaus.groovy.runtime.memoize.ProtectionStorage

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 Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
touch(final Object
The key of the element to renew
key
,
final Object
A value to newly associate with the key
value
)

Implements org.codehaus.groovy.runtime.memoize.ProtectionStorage.touch.

Does nothing
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NullProtectionStorageback to summary
public NullProtectionStorage()

Method Detail

touchback to summary
public void touch(final Object key, final Object value)

Implements org.codehaus.groovy.runtime.memoize.ProtectionStorage.touch.

Does nothing

Parameters
key:Object

The key of the element to renew

value:Object

A value to newly associate with the key