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