public class PGlseg extends PGobject implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
PGpoint[] |
point
These are the two points.
|
Constructor and Description |
---|
PGlseg()
required by the driver.
|
PGlseg(double x1,
double y1,
double x2,
double y2) |
PGlseg(PGpoint p1,
PGpoint p2) |
PGlseg(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 PGpoint[] point
public PGlseg(double x1, double y1, double x2, double y2)
x1
- coordinate for first pointy1
- coordinate for first pointx2
- coordinate for second pointy2
- coordinate for second pointpublic PGlseg(String s) throws SQLException
s
- definition of the line segment in PostgreSQL's syntax.SQLException
- on conversion failurepublic PGlseg()
public void setValue(@Nullable String s) throws SQLException
PGobject
setValue
in class PGobject
s
- Definition of the line segment in PostgreSQL's syntaxSQLException
- 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.