Class ComparablePoint
Represents a point with comparable X and Y coordinates, typically used for trading annotations
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class ComparablePoint
Constructors
ComparablePoint()
Creates a new instance of ComparablePoint with default null values
Declaration
public ComparablePoint()
ComparablePoint(Comparable<?> x, Comparable<?> y)
Creates a new instance of ComparablePoint with specified x and y values
Declaration
public ComparablePoint(Comparable<?> x, Comparable<?> y)
Parameters
| Type | Name | Description |
|---|---|---|
| Comparable<?> | x | The x coordinate value |
| Comparable<?> | y | The y coordinate value |
Methods
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | o |
Returns
| Type | Description |
|---|---|
| boolean |
Overrides
getX()
Gets the x coordinate value
Declaration
public Comparable<?> getX()
Returns
| Type | Description |
|---|---|
| Comparable<?> | The x coordinate value |
getY()
Gets the y coordinate value
Declaration
public Comparable<?> getY()
Returns
| Type | Description |
|---|---|
| Comparable<?> | The y coordinate value |
hashCode()
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
setX(Comparable<?> x)
Sets the x coordinate value
Declaration
public void setX(Comparable<?> x)
Parameters
| Type | Name | Description |
|---|---|---|
| Comparable<?> | x | The x coordinate value to set |
setY(Comparable<?> y)
Sets the y coordinate value
Declaration
public void setY(Comparable<?> y)
Parameters
| Type | Name | Description |
|---|---|---|
| Comparable<?> | y | The y coordinate value to set |
toString()
Declaration
public String toString()
Returns
| Type | Description |
|---|---|
| String |