examples/Chart-12/src/main/java/org/jfree/data/time/TimePeriodAnchor.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(TimePeriodAnchor.START)) {
            return TimePeriodAnchor.START;
        }
        else if (this.equals(TimePeriodAnchor.MIDDLE)) {
            return TimePeriodAnchor.MIDDLE;
        }
        else if (this.equals(TimePeriodAnchor.END)) {
            return TimePeriodAnchor.END;
        }
        return null;
    }
private Object readResolve ( ) throws ObjectStreamException { if ( this . equals ( TimePeriodAnchor . START ) ) { return TimePeriodAnchor . START ; } else if ( this . equals ( TimePeriodAnchor . MIDDLE ) ) { return TimePeriodAnchor . MIDDLE ; } else if ( this . equals ( TimePeriodAnchor . END ) ) { return TimePeriodAnchor . END ; } return null ; }
Ensures that serialization returns the unique instances.
Ensures that serialization returns the unique instances .