All pastes #19472 Raw Edit

Something

public java v1 · immutable
#19472 ·published 2005-08-07 03:11 UTC
rendered paste body
public class Point3D extends Point3f implements Comparable<Point3f>    {        /**         * Comment for <code>serialVersionUID</code>         */        private static final long serialVersionUID = -1615396748786955162L;        /**         * @param i         * @param j         * @param k         */        public Point3D(int i, int j, int k)        {            super(i,j,k);        }        /* (non-Javadoc)         * @see java.lang.Comparable#compareTo(T)         */        public int compareTo(Point3f point)        {            if (point == null)                throw new NullPointerException();            if (point.x > this.x)            {                return 1;            }            else if (point.x == this.x)            {                if (point.y > this.y)                {                    return 1;                }                else if (point.y == this.y)                {                    return 0;                }                return -1;            }            return -1;        }            }