public class ItemSquarePattern extends PrimitivePattern
Constructor and Description |
---|
ItemSquarePattern(java.lang.String item,
int column,
int row)
Constructor takes a string to identify the item, and a column and row
to identify the square.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Two ItemSquarePatterns are only equal if all their parts are the same.
|
int |
getColumn()
Accessor method for the column.
|
java.lang.String |
getItem()
Accessor method for the stored item.
|
int |
getRow()
Accessor method for the row.
|
boolean |
matches(Pattern givenPattern)
Two ItemSquarePatterns only match if they are the same.
|
java.lang.String |
toString()
Return a string representation of the item on square.
|
makeActionList, makeNumber, makeString, makeVerbalList, makeVerbalList, makeVisualList, makeVisualList
public ItemSquarePattern(java.lang.String item, int column, int row)
public java.lang.String getItem()
public int getColumn()
public int getRow()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public boolean matches(Pattern givenPattern)