public class GXPosition extends Object implements Serializable, Cloneable
This class is immutable.
Modifier and Type | Field and Description |
---|---|
static GXPosition |
DEFAULT |
Constructor and Description |
---|
GXPosition()
Ctor for dotNet Xstream.Serializable
|
GXPosition(int row,
int column)
Creates a new position.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
compareTo(Object otherPosition)
Position A is considered to be greater than position B if it is either in
a greater row, or in the same row and with a greater column.
|
boolean |
equals(Object otherPosition)
Tests if this position is equal to the given position.
Two positions are considered equal if they are in the same row and column. |
int |
getColumn()
Returns the column value set for this position.
|
int |
getRow()
Returns the row value set for this position
|
int |
hashCode() |
String |
toString() |
public static GXPosition DEFAULT
public GXPosition()
public GXPosition(int row, int column)
row
- the row of the position.column
- the column of the positionpublic int getRow()
public int getColumn()
public boolean equals(Object otherPosition)
public int compareTo(Object otherPosition)
Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.