Skip to content

Instantly share code, notes, and snippets.

@AlexJoz
Created October 22, 2015 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexJoz/f7b1426fc5648996485f to your computer and use it in GitHub Desktop.
Save AlexJoz/f7b1426fc5648996485f to your computer and use it in GitHub Desktop.
Enum Direction
enum Direction {
VERTICAL {
public Direction opposite() {
return HORIZONTAL;
}
},
HORIZONTAL {
public Direction opposite() {
return VERTICAL;
}
};
public abstract Direction opposite();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment