public final class FieldBoundImpl extends java.lang.Object implements FieldBound
FieldBound
Modifier and Type | Method and Description |
---|---|
static FieldBoundImpl |
createBoundary(int columnsCount,
int rowsCount)
Creates a boundary.
|
boolean |
equals(java.lang.Object o) |
int |
getColumnsCount()
Returns the horizontal bound, which is also the number of columns.
|
int |
getRowsCount()
Returns the vertical bound, which is also the number of rows.
|
int |
getSize()
Returns the size of the boundary.
|
int |
hashCode() |
java.lang.String |
toString() |
public static FieldBoundImpl createBoundary(int columnsCount, int rowsCount)
columnsCount
- Columns countrowsCount
- Rows countFieldBoundImpl
java.lang.IllegalArgumentException
- if values are negativepublic int getColumnsCount()
FieldBound
getColumnsCount
in interface FieldBound
public int getRowsCount()
FieldBound
getRowsCount
in interface FieldBound
public int getSize()
FieldBound
getSize
in interface FieldBound
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object