public class PGcircle extends PGobject implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
PGpoint |
center
This is the center point
|
double |
radius
This is the radius
|
Constructor and Description |
---|
PGcircle()
This constructor is used by the driver.
|
PGcircle(double x,
double y,
double r) |
PGcircle(PGpoint c,
double r) |
PGcircle(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This must be overidden to allow the object to be cloned
|
boolean |
equals(java.lang.Object obj)
This must be overidden to allow comparisons of objects
|
java.lang.String |
getValue()
This must be overidden, to return the value of the object, in the
form required by org.postgresql.
|
int |
hashCode()
Compute hash.
|
void |
setValue(java.lang.String s)
This method sets the value of this object.
|
public PGpoint center
public double radius
public PGcircle(double x, double y, double r)
x
- coordinate of centery
- coordinate of centerr
- radius of circlepublic PGcircle(PGpoint c, double r)
c
- PGpoint describing the circle's centerr
- radius of circlepublic PGcircle(java.lang.String s) throws java.sql.SQLException
s
- definition of the circle in PostgreSQL's syntax.java.sql.SQLException
- on conversion failurepublic PGcircle()
public void setValue(java.lang.String s) throws java.sql.SQLException
PGobject
public boolean equals(java.lang.Object obj)
PGobject
public int hashCode()
PGobject
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PGobject