ch.randelshofer.rubik.parser
Class Move
java.lang.Object
ch.randelshofer.rubik.parser.Move
- All Implemented Interfaces:
- java.lang.Comparable
public class Move
- extends java.lang.Object
- implements java.lang.Comparable
Symbol for move tokens.
Instances of this class are immutable.
This class must be Java 1.1 compliant.
- Version:
- 2.0 2007-06-16 Renamed from Twist to Move.
1.0 May 1, 2006 Created.
- Author:
- Werner Randelshofer.
|
Constructor Summary |
Move(int axis,
int layerMask,
int angle)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
R
public static final Move R
L
public static final Move L
U
public static final Move U
D
public static final Move D
F
public static final Move F
B
public static final Move B
RI
public static final Move RI
LI
public static final Move LI
UI
public static final Move UI
DI
public static final Move DI
FI
public static final Move FI
BI
public static final Move BI
R2
public static final Move R2
L2
public static final Move L2
U2
public static final Move U2
D2
public static final Move D2
F2
public static final Move F2
B2
public static final Move B2
CR
public static final Move CR
CL
public static final Move CL
CU
public static final Move CU
CD
public static final Move CD
CF
public static final Move CF
CB
public static final Move CB
CR2
public static final Move CR2
CL2
public static final Move CL2
CU2
public static final Move CU2
CD2
public static final Move CD2
CF2
public static final Move CF2
CB2
public static final Move CB2
Move
public Move(int axis,
int layerMask,
int angle)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
toInverse
public Move toInverse()
- Returns an inverse Move of this Move.
getAxis
public int getAxis()
getAngle
public int getAngle()
getLayerMask
public int getLayerMask()
getLayerList
public java.lang.String getLayerList()
toLayerMask
public static int toLayerMask(java.lang.String str)
equals
public boolean equals(Move that)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getResolvedList
public java.util.List getResolvedList()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo in interface java.lang.Comparable