Class ImmutableValueElementCopyStrategy

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Element copyForRead​(Element storedValue, java.lang.ClassLoader loader)
      Reconstruct an object from its storage-ready copy.
      Element copyForWrite​(Element value, java.lang.ClassLoader loader)
      Deep copies some object and returns an internal storage-ready copy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImmutableValueElementCopyStrategy

        public ImmutableValueElementCopyStrategy()
    • Method Detail

      • copyForWrite

        public Element copyForWrite​(Element value,
                                    java.lang.ClassLoader loader)
        Deep copies some object and returns an internal storage-ready copy
        Specified by:
        copyForWrite in interface ReadWriteCopyStrategy<Element>
        Parameters:
        value - the value to copy
        Returns:
        the storage-ready copy
      • copyForRead

        public Element copyForRead​(Element storedValue,
                                   java.lang.ClassLoader loader)
        Reconstruct an object from its storage-ready copy.
        Specified by:
        copyForRead in interface ReadWriteCopyStrategy<Element>
        Parameters:
        storedValue - the storage-ready copy
        Returns:
        the original object