public int compareTo(Object o){
  if (o == this) {
    return 0;
  }
  Point p=(Point)o;
  for (int i=0; i < getSize(); i++) {
    if (getValue(i) != p.getValue(i)) {
      return (int)Math.signum(p.getValue(i) - getValue(i));
    }
  }
  return 0;
}

public int compareTo ( Object o ) { if ( o == this ) { return 0 ; } Point p = ( Point ) o ; for ( int i = 0 ; i < getSize ( ) ; i ++ ) { if ( getValue ( i ) != p . getValue ( i ) ) { return ( int ) Math . signum ( p . getValue ( i ) - getValue ( i ) ) ; } } return 0 ; }
true iff the given object is a point with the same coordinates as this one .
