Added toString and equals tests
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@210 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
9c056cfef7
commit
b14a707d4f
3 changed files with 67 additions and 41 deletions
|
@ -20,20 +20,6 @@ public class StoneTray<E extends Sizeable> implements IStoneTray<E> {
|
|||
|
||||
protected static enum Direction {
|
||||
LEFT, RIGHT, TOP, BOTTOM;
|
||||
|
||||
public Direction reverse() {
|
||||
switch (this) {
|
||||
case LEFT:
|
||||
return RIGHT;
|
||||
case RIGHT:
|
||||
return LEFT;
|
||||
case TOP:
|
||||
return BOTTOM;
|
||||
case BOTTOM:
|
||||
return TOP;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Reference in a new issue