PersistenceDelegate.java (13629:5bb70b2df494) PersistenceDelegate.java (14781:eb9249662bc2)
1/*
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided

--- 75 unchanged lines hidden (view full) ---

84 *
85 * @author Philip Milne
86 */
87
88public abstract class PersistenceDelegate {
89
90 /**
91 * The {@code writeObject} is a single entry point to the persistence
1/*
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided

--- 75 unchanged lines hidden (view full) ---

84 *
85 * @author Philip Milne
86 */
87
88public abstract class PersistenceDelegate {
89
90 /**
91 * The {@code writeObject} is a single entry point to the persistence
92 * and is used by a {@code Encoder} in the traditional
92 * and is used by an {@code Encoder} in the traditional
93 * mode of delegation. Although this method is not final,
94 * it should not need to be subclassed under normal circumstances.
95 * <p>
96 * This implementation first checks to see if the stream
97 * has already encountered this object. Next the
98 * {@code mutatesTo} method is called to see if
99 * that candidate returned from the stream can
100 * be mutated into an accurate copy of {@code oldInstance}.

--- 116 unchanged lines hidden ---
93 * mode of delegation. Although this method is not final,
94 * it should not need to be subclassed under normal circumstances.
95 * <p>
96 * This implementation first checks to see if the stream
97 * has already encountered this object. Next the
98 * {@code mutatesTo} method is called to see if
99 * that candidate returned from the stream can
100 * be mutated into an accurate copy of {@code oldInstance}.

--- 116 unchanged lines hidden ---