litesoft
@ 548
litesoft / trunk / GWT_Sandbox / MultiModule / foundation / src / org / litesoft / sandbox / multimodule / foundation / client / Places.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
package org.litesoft.sandbox.multimodule.foundation.client; public enum Places { Home, // ... 0 Front, // .. 1 Top, // .... 2 Left, // ... 3 Right, // .. 4 Bottom, // . 5 Back; // ... 6 public Places getOppositeFace() { return values()[7-ordinal()]; } public static Places fromOrdinal( int pOrdinal ) { return values()[pOrdinal]; } } |