Class NoopReferenceCache

  • All Implemented Interfaces:
    ReferenceCache

    public final class NoopReferenceCache
    extends Object
    implements ReferenceCache
    A simple reference cache which actually does not cache anything.
    • 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 interface ReferenceCache
        Parameters:
        object - An object to which you'd like to
        Returns:
        Shared reference to the object.