mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
JDBC indenting, comment cleanups.
This commit is contained in:
@@ -6,7 +6,7 @@ import java.sql.*;
|
||||
|
||||
import org.postgresql.util.*;
|
||||
|
||||
/**
|
||||
/*
|
||||
* This implements a version of java.awt.Point, except it uses double
|
||||
* to represent the coordinates.
|
||||
*
|
||||
@@ -14,17 +14,17 @@ import org.postgresql.util.*;
|
||||
*/
|
||||
public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
{
|
||||
/**
|
||||
/*
|
||||
* The X coordinate of the point
|
||||
*/
|
||||
public double x;
|
||||
|
||||
/**
|
||||
/*
|
||||
* The Y coordinate of the point
|
||||
*/
|
||||
public double y;
|
||||
|
||||
/**
|
||||
/*
|
||||
* @param x coordinate
|
||||
* @param y coordinate
|
||||
*/
|
||||
@@ -35,7 +35,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* This is called mainly from the other geometric types, when a
|
||||
* point is imbeded within their definition.
|
||||
*
|
||||
@@ -47,7 +47,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
setValue(value);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Required by the driver
|
||||
*/
|
||||
public PGpoint()
|
||||
@@ -55,7 +55,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
setType("point");
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* @param s Definition of this point in PostgreSQL's syntax
|
||||
* @exception SQLException on conversion failure
|
||||
*/
|
||||
@@ -73,7 +73,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* @param obj Object to compare with
|
||||
* @return true if the two boxes are identical
|
||||
*/
|
||||
@@ -87,7 +87,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* This must be overidden to allow the object to be cloned
|
||||
*/
|
||||
public Object clone()
|
||||
@@ -95,7 +95,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
return new PGpoint(x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* @return the PGpoint in the syntax expected by org.postgresql
|
||||
*/
|
||||
public String getValue()
|
||||
@@ -103,7 +103,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
return "(" + x + "," + y + ")";
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Translate the point with the supplied amount.
|
||||
* @param x integer amount to add on the x axis
|
||||
* @param y integer amount to add on the y axis
|
||||
@@ -113,7 +113,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
translate((double)x, (double)y);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Translate the point with the supplied amount.
|
||||
* @param x double amount to add on the x axis
|
||||
* @param y double amount to add on the y axis
|
||||
@@ -124,7 +124,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
this.y += y;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Moves the point to the supplied coordinates.
|
||||
* @param x integer coordinate
|
||||
* @param y integer coordinate
|
||||
@@ -134,7 +134,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
setLocation(x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Moves the point to the supplied coordinates.
|
||||
* @param x double coordinate
|
||||
* @param y double coordinate
|
||||
@@ -145,7 +145,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Moves the point to the supplied coordinates.
|
||||
* refer to java.awt.Point for description of this
|
||||
* @param x integer coordinate
|
||||
@@ -157,7 +157,7 @@ public class PGpoint extends PGobject implements Serializable, Cloneable
|
||||
move((double)x, (double)y);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Moves the point to the supplied java.awt.Point
|
||||
* refer to java.awt.Point for description of this
|
||||
* @param p Point to move to
|
||||
|
||||
Reference in New Issue
Block a user