afreechart/src/main/java/org/afree/ui/Layer.java
/**
     * Ensures that serialization returns the unique instances.
     * 
     * @return The object.
     * 
     * @throws ObjectStreamException
     *             if there is a problem.
     */
Ensures that serialization returns the unique instances.

@return The object.

@throws ObjectStreamException
if there is a problem.
Ensures that serialization returns the unique instances . @return The object . @throws ObjectStreamException if there is a problem .
private Object readResolve() throws ObjectStreamException {
        Layer result = null;
        if (this.equals(Layer.FOREGROUND)) {
            result = Layer.FOREGROUND;
        } else if (this.equals(Layer.BACKGROUND)) {
            result = Layer.BACKGROUND;
        }
        return result;
    }
private Object readResolve ( ) throws ObjectStreamException { Layer result = null ; if ( this . equals ( Layer . FOREGROUND ) ) { result = Layer . FOREGROUND ; } else if ( this . equals ( Layer . BACKGROUND ) ) { result = Layer . BACKGROUND ; } return result ; }
Ensures that serialization returns the unique instances.
Ensures that serialization returns the unique instances .