Package org.opendaylight.protocol.util
Class NoopReferenceCache
- java.lang.Object
-
- org.opendaylight.protocol.util.NoopReferenceCache
-
- All Implemented Interfaces:
ReferenceCache
public final class NoopReferenceCache extends Object implements ReferenceCache
A simple reference cache which actually does not cache anything.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NoopReferenceCache
getInstance()
<T> T
getSharedReference(T object)
Get a shared reference to an object.
-
-
-
Method Detail
-
getSharedReference
public <T> T getSharedReference(T object)
Description copied from interface:ReferenceCache
Get a shared reference to an object. The contract here is that the returned object is an instance of the same class and compares equal to the passed object.- Specified by:
getSharedReference
in interfaceReferenceCache
- Parameters:
object
- An object to which you'd like to- Returns:
- Shared reference to the object.
-
getInstance
public static NoopReferenceCache getInstance()
-
-