afreechart/src/main/java/org/afree/ui/GradientShaderType.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 {
        GradientShaderType result = null;
        if (this.equals(GradientShaderType.HORIZONTAL)) {
            result = GradientShaderType.HORIZONTAL;
        } else if (this.equals(GradientShaderType.VERTICAL)) {
            result = GradientShaderType.VERTICAL;
        } else if (this.equals(GradientShaderType.CENTER_HORIZONTAL)) {
            result = GradientShaderType.CENTER_HORIZONTAL;
        } else if (this.equals(GradientShaderType.CENTER_VERTICAL)) {
            result = GradientShaderType.CENTER_VERTICAL;
        }
        return result;
    }
private Object readResolve ( ) throws ObjectStreamException { GradientShaderType result = null ; if ( this . equals ( GradientShaderType . HORIZONTAL ) ) { result = GradientShaderType . HORIZONTAL ; } else if ( this . equals ( GradientShaderType . VERTICAL ) ) { result = GradientShaderType . VERTICAL ; } else if ( this . equals ( GradientShaderType . CENTER_HORIZONTAL ) ) { result = GradientShaderType . CENTER_HORIZONTAL ; } else if ( this . equals ( GradientShaderType . CENTER_VERTICAL ) ) { result = GradientShaderType . CENTER_VERTICAL ; } return result ; }
Ensures that serialization returns the unique instances.
Ensures that serialization returns the unique instances .