org.objectweb.carol.cmi
Class WeakCache
java.lang.Object
org.objectweb.carol.cmi.WeakCache
public class WeakCache
extends java.lang.Object
An object cache, to reduce memory usage by returning always the same instance for
equal objects.
Object | getCached(Object obj) - Registers an object in the cache or return an already registered equal object.
|
getCached
public Object getCached(Object obj)
Registers an object in the cache or return an already registered equal object.
obj
- Object to register.
- the copy to use.