public class PGcircle extends PGobject implements Serializable, 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(String s) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
This must be overidden to allow the object to be cloned.
|
boolean |
equals(Object obj)
This must be overidden to allow comparisons of objects.
|
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(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(String s) throws SQLException
s - definition of the circle in PostgreSQL's syntax.SQLException - on conversion failurepublic PGcircle()
public void setValue(String s) throws SQLException
PGobjectsetValue in class PGobjects - definition of the circle in PostgreSQL's syntax.SQLException - on conversion failurepublic boolean equals(Object obj)
PGobjectequals in class PGobjectobj - Object to compare withObject.hashCode(),
HashMappublic int hashCode()
PGobjecthashCode in class PGobjectObjects.hashCode(Object)Object.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public Object clone() throws CloneNotSupportedException
PGobjectclone in class PGobjectCloneNotSupportedException - if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.CloneableCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.