afreechart/src/main/java/org/afree/ui/VerticalAlignment.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(VerticalAlignment.TOP)) {
            return VerticalAlignment.TOP;
        } else if (this.equals(VerticalAlignment.BOTTOM)) {
            return VerticalAlignment.BOTTOM;
        } else if (this.equals(VerticalAlignment.CENTER)) {
            return VerticalAlignment.CENTER;
        } else {
            return null; 
        }
    }
private Object readResolve ( ) throws ObjectStreamException { if ( this . equals ( VerticalAlignment . TOP ) ) { return VerticalAlignment . TOP ; } else if ( this . equals ( VerticalAlignment . BOTTOM ) ) { return VerticalAlignment . BOTTOM ; } else if ( this . equals ( VerticalAlignment . CENTER ) ) { return VerticalAlignment . CENTER ; } else { return null ; } }
Ensures that serialization returns the unique instances.
Ensures that serialization returns the unique instances .
// this should never happen