public class PGcircle extends PGobject implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
@Nullable 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(@Nullable Object obj)
This must be overidden to allow comparisons of objects.
|
@Nullable 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(@Nullable String s)
This method sets the value of this object.
|
public @Nullable 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(@Nullable String s) throws SQLException
PGobject
setValue
in class PGobject
s
- definition of the circle in PostgreSQL's syntax.SQLException
- on conversion failurepublic boolean equals(@Nullable Object obj)
PGobject
public int hashCode()
PGobject
hashCode
in class PGobject
Objects.hashCode(Object)
public Object clone() throws CloneNotSupportedException
PGobject
clone
in class PGobject
CloneNotSupportedException
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.