예제 #1
0
            /// <summary>
            /// Returns a {@code LongAccumulator} object with initial state
            /// held by this proxy.
            /// </summary>
            /// <returns> a {@code LongAccumulator} object with initial state
            /// held by this proxy. </returns>
            internal virtual Object ReadResolve()
            {
                LongAccumulator a = new LongAccumulator(Function, Identity);

                a.@base = Value;
                return(a);
            }
예제 #2
0
 internal SerializationProxy(LongAccumulator a)
 {
     Function = a.Function;
     Identity = a.Identity;
     Value    = a.Get();
 }