| Modifier and Type | Field and Description |
|---|---|
| public @Nullable PGpoint[] | point
These are the two points. |
| Access | Constructor and Description |
|---|---|
| public | PGbox(double
first x coordinate x1, double first y coordinate y1, double second x coordinate x2, double second y coordinate y2)
|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides org. This must be overridden to allow the object to be cloned. |
| public boolean | Returns: true if the two boxes are identicalObject to compare with obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public @Nullable String | Returns: the PGbox in the syntax expected by org.postgresqlOverrides org. This must be overridden, to return the value of the object, in the form required by org.postgresql. |
| public int | |
| public int | lengthInBytes()
Implements org. This method is called to return the number of bytes needed to store this object in the binary form required by org.postgresql. |
| public void | setByteValue(byte[]
Definition of this point in PostgreSQL's binary syntax b, int the offset in the byte array where object data starts offset)Implements org. This method is called to set the value of this object. |
| public void | |
| public void | toBytes(byte[]
the array to store the value, it is guaranteed to be at lest
bytes, int lengthInBytes in size.the offset in the byte array where object must be stored offset)Implements org. This method is called the to store the value of the object, in the binary form required by org.postgresql. |
| point | back to summary |
|---|---|
| public @Nullable PGpoint[] point These are the two points. | |
| PGbox | back to summary |
|---|---|
public PGbox(double x1, double y1, double x2, double y2)
| |
| PGbox | back to summary |
|---|---|
| public PGbox(PGpoint p1, PGpoint p2) | |
| PGbox | back to summary |
|---|---|
public PGbox(String s) throws SQLException
| |
| PGbox | back to summary |
|---|---|
| public PGbox() Required constructor. | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides org. Doc from org. This must be overridden to allow the object to be cloned.
| |
| equals | back to summary |
|---|---|
| public boolean equals(@Nullable Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getValue | back to summary |
|---|---|
| public @Nullable String getValue() Overrides org. Doc from org. This must be overridden, to return the value of the object, in the form required by org.postgresql. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from org. Compute hash. As equals() use only value. Return the same hash for the same value.
| |
| lengthInBytes | back to summary |
|---|---|
| public int lengthInBytes() Implements org. Doc from org. This method is called to return the number of bytes needed to store this object in the binary form required by org.postgresql.
| |
| setByteValue | back to summary |
|---|---|
| public void setByteValue(byte[] b, int offset) Implements org. Doc from org. This method is called to set the value of this object.
| |
| setValue | back to summary |
|---|---|
| public void setValue(@Nullable String value) throws SQLException This method sets the value of this object. It should be overridden, but still called by subclasses.
| |
| toBytes | back to summary |
|---|---|
| public void toBytes(byte[] bytes, int offset) Implements org. Doc from org. This method is called the to store the value of the object, in the binary form required by org.postgresql.
| |