/*
 * Geometry.java
 *
 * Created on 8. februar 2007, 10:00
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.rometools.modules.georss.geometries;

import java.io.Serializable;

/**
 * Abstract base class for geometries.
 *
 * @author runaas
 */
public abstract class AbstractGeometry implements Cloneable, Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /** Creates a new instance of Geometry */
    public AbstractGeometry() {
    }

    /**
     * Make a deep copy of the geometric object
     *
     * @return A copy of the object
     */
    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public boolean equals(final Object obj) {
        return obj != null && obj.getClass() == getClass();
    }
}
