diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/mapping/TranslationDirection.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/mapping/TranslationDirection.java | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/main/java/cuchaz/enigma/mapping/TranslationDirection.java b/src/main/java/cuchaz/enigma/mapping/TranslationDirection.java index 8329d0d..17e3187 100644 --- a/src/main/java/cuchaz/enigma/mapping/TranslationDirection.java +++ b/src/main/java/cuchaz/enigma/mapping/TranslationDirection.java | |||
| @@ -8,22 +8,23 @@ | |||
| 8 | * Contributors: | 8 | * Contributors: |
| 9 | * Jeff Martin - initial API and implementation | 9 | * Jeff Martin - initial API and implementation |
| 10 | ******************************************************************************/ | 10 | ******************************************************************************/ |
| 11 | |||
| 11 | package cuchaz.enigma.mapping; | 12 | package cuchaz.enigma.mapping; |
| 12 | 13 | ||
| 13 | public enum TranslationDirection { | 14 | public enum TranslationDirection { |
| 14 | 15 | ||
| 15 | Deobfuscating { | 16 | Deobfuscating { |
| 16 | @Override | 17 | @Override |
| 17 | public <T> T choose(T deobfChoice, T obfChoice) { | 18 | public <T> T choose(T deobfChoice, T obfChoice) { |
| 18 | return deobfChoice; | 19 | return deobfChoice; |
| 19 | } | 20 | } |
| 20 | }, | 21 | }, |
| 21 | Obfuscating { | 22 | Obfuscating { |
| 22 | @Override | 23 | @Override |
| 23 | public <T> T choose(T deobfChoice, T obfChoice) { | 24 | public <T> T choose(T deobfChoice, T obfChoice) { |
| 24 | return obfChoice; | 25 | return obfChoice; |
| 25 | } | 26 | } |
| 26 | }; | 27 | }; |
| 27 | 28 | ||
| 28 | public abstract <T> T choose(T deobfChoice, T obfChoice); | 29 | public abstract <T> T choose(T deobfChoice, T obfChoice); |
| 29 | } | 30 | } |