Пример #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];
 }
Пример #2
-1
 @Override
 public void nextOrientation() {
   missingDir = missingDir.next();
 }
Пример #3
-1
 @Override
 public void prevOrientation() {
   missingDir = missingDir.prev();
 }
Пример #4
-1
 @Override
 public int currentOrientation() {
   return missingDir.ordinal();
 }