diff options
| author | 2017-03-08 08:17:04 +0100 | |
|---|---|---|
| committer | 2017-03-08 08:17:04 +0100 | |
| commit | 6e464ea251cab63c776ece0b2a356f1498ffa294 (patch) | |
| tree | 5ed30c03f5ac4cd2d6877874f5ede576049954f7 /src/main/java/cuchaz/enigma/mapping/TranslationDirection.java | |
| parent | Drop unix case style and implement hashCode when equals is overrided (diff) | |
| download | enigma-fork-6e464ea251cab63c776ece0b2a356f1498ffa294.tar.gz enigma-fork-6e464ea251cab63c776ece0b2a356f1498ffa294.tar.xz enigma-fork-6e464ea251cab63c776ece0b2a356f1498ffa294.zip | |
Follow Fabric guidelines
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 | } |