Class MockStrongReference<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      MockStrongReference​(T ref, boolean deserializeAsWeakRef)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      private java.lang.Object readResolve()  
      • Methods inherited from class java.lang.Object

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

      • ref

        private final T ref
      • deserializeAsWeakRef

        private final boolean deserializeAsWeakRef
    • Constructor Detail

      • MockStrongReference

        public MockStrongReference​(T ref,
                                   boolean deserializeAsWeakRef)
    • Method Detail

      • readResolve

        private java.lang.Object readResolve()
                                      throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException