Example #1
-1
 @Override
 public void setOrientation(final int orientation) {
   final ConnectionDirection[] dirs = ConnectionDirection.values();
   checkArgument(orientation >= 0 && orientation < dirs.length, "orientation out of range");
   this.missingDir = dirs[orientation];
 }
Example #2
-1
 @Override
 public void nextOrientation() {
   missingDir = missingDir.next();
 }
Example #3
-1
 @Override
 public void prevOrientation() {
   missingDir = missingDir.prev();
 }
Example #4
-1
 @Override
 public int currentOrientation() {
   return missingDir.ordinal();
 }