|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjchrest.lib.Pattern
jchrest.lib.PrimitivePattern
jchrest.lib.ItemSquarePattern
public class ItemSquarePattern
The ItemSquarePattern is a type of PrimitivePattern used to hold objects places on a square array. The item-on-square is treated as a single object. Instances of this class are immutable.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class jchrest.lib.Pattern |
---|
makeActionList, makeNumber, makeString, makeVerbalList, makeVerbalList, makeVisualList, makeVisualList |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ItemSquarePattern(java.lang.String item, int column, int row)
Method Detail |
---|
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)
matches
in class Pattern
public java.lang.String toString()
toString
in class Pattern
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |