afreechart/src/main/java/org/afree/chart/util/XYCoordinateType.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 {
        if (this.equals(XYCoordinateType.DATA)) {
            return XYCoordinateType.DATA;
        }
        else if (this.equals(XYCoordinateType.RELATIVE)) {
            return XYCoordinateType.RELATIVE;
        }
        else if (this.equals(XYCoordinateType.INDEX)) {
            return XYCoordinateType.INDEX;
        }
        return null;
    }
private Object readResolve ( ) throws ObjectStreamException { if ( this . equals ( XYCoordinateType . DATA ) ) { return XYCoordinateType . DATA ; } else if ( this . equals ( XYCoordinateType . RELATIVE ) ) { return XYCoordinateType . RELATIVE ; } else if ( this . equals ( XYCoordinateType . INDEX ) ) { return XYCoordinateType . INDEX ; } return null ; }
Ensures that serialization returns the unique instances.
Ensures that serialization returns the unique instances .