public class GXPosition
extends java.lang.Object
implements java.io.Serializable, java.lang.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 |
---|---|
java.lang.Object |
clone() |
int |
compareTo(java.lang.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(java.lang.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() |
java.lang.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(java.lang.Object otherPosition)
equals
in class java.lang.Object
otherPosition
- another position objectpublic int compareTo(java.lang.Object otherPosition)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
Copyright 2018 Software AG. All rights reserved. Use is subject to license terms.