public class PGline extends PGobject implements Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
double |
a
Coefficient of x.
|
double |
b
Coefficient of y.
|
double |
c
Constant.
|
| Constructor and Description |
|---|
PGline()
required by the driver.
|
PGline(double a,
double b,
double c) |
PGline(double x1,
double y1,
double x2,
double y2) |
PGline(@Nullable PGlseg lseg) |
PGline(@Nullable PGpoint p1,
@Nullable PGpoint p2) |
PGline(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 double a
public double b
public double c
public PGline(double a,
double b,
double c)
a - coefficient of xb - coefficient of yc - constantpublic PGline(double x1,
double y1,
double x2,
double y2)
x1 - coordinate for first point on the liney1 - coordinate for first point on the linex2 - coordinate for second point on the liney2 - coordinate for second point on the linepublic PGline(@Nullable PGpoint p1, @Nullable PGpoint p2)
p1 - first point on the linep2 - second point on the linepublic PGline(@Nullable PGlseg lseg)
lseg - Line segment which calls on this line.public PGline(String s) throws SQLException
s - definition of the line in PostgreSQL's syntax.SQLException - on conversion failurepublic PGline()
public void setValue(@Nullable String s) throws SQLException
PGobjectsetValue in class PGobjects - Definition of the line in PostgreSQL's syntaxSQLException - on conversion failurepublic boolean equals(@Nullable Object obj)
PGobjectpublic int hashCode()
PGobjecthashCode in class PGobjectObjects.hashCode(Object)public @Nullable String getValue()
PGobjectpublic Object clone() throws CloneNotSupportedException
PGobjectclone in class PGobjectCloneNotSupportedExceptionCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.