public class PGpolygon extends PGobject implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
PGpoint[] |
points
The points defining the polygon.
|
Constructor and Description |
---|
PGpolygon()
Required by the driver.
|
PGpolygon(PGpoint[] points)
Creates a polygon using an array of PGpoints.
|
PGpolygon(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[] points
public PGpolygon(PGpoint[] points)
points
- the points defining the polygonpublic PGpolygon(String s) throws SQLException
s
- definition of the polygon in PostgreSQL's syntax.SQLException
- on conversion failurepublic PGpolygon()
public void setValue(String s) throws SQLException
PGobject
setValue
in class PGobject
s
- Definition of the polygon in PostgreSQL's syntaxSQLException
- on conversion failurepublic boolean equals(Object obj)
PGobject
equals
in class PGobject
obj
- Object to compare withObject.hashCode()
,
HashMap
public int hashCode()
PGobject
hashCode
in class PGobject
Objects.hashCode(Object)
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public Object clone() throws CloneNotSupportedException
PGobject
clone
in class PGobject
CloneNotSupportedException
- 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.Cloneable
Copyright © 2018 PostgreSQL Global Development Group. All rights reserved.