io.vertx.pgclient.data

## Class LineSegment

- java.lang.Object
- - io.vertx.pgclient.data.LineSegment

-     public class LineSegment
      extends Object

  Finite line segment data type in Postgres represented by pairs of `Point`s that are the endpoints of the segment.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LineSegment()`
    `LineSegment(JsonObject json)`
    `LineSegment(Point p1, Point p2)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `Point` | `getP1()`
    `Point` | `getP2()`
    `int` | `hashCode()`
    `void` | `setP1(Point p1)`
    `void` | `setP2(Point p2)`
    `JsonObject` | `toJson()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### LineSegment

          public LineSegment()

    - #### LineSegment

          public LineSegment(Point p1,
                             Point p2)

    - #### LineSegment

          public LineSegment(JsonObject json)

  - ### Method Detail

    - #### getP1

          public Point getP1()

    - #### setP1

          public void setP1(Point p1)

    - #### getP2

          public Point getP2()

    - #### setP2

          public void setP2(Point p2)

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### toJson

          public JsonObject toJson()

Copyright © 2019 Eclipse. All rights reserved.