diff options
| author | 2016-06-30 00:49:21 +1000 | |
|---|---|---|
| committer | 2016-06-30 00:49:21 +1000 | |
| commit | 4be005617b3b8c3578cca07c5d085d12916f0d1d (patch) | |
| tree | db163431f38703e26da417ef05eaea2b27a498b9 /src/cuchaz/enigma/mapping/TranslationDirection.java | |
| parent | Some small changes to fix idea importing (diff) | |
| download | enigma-fork-4be005617b3b8c3578cca07c5d085d12916f0d1d.tar.gz enigma-fork-4be005617b3b8c3578cca07c5d085d12916f0d1d.tar.xz enigma-fork-4be005617b3b8c3578cca07c5d085d12916f0d1d.zip | |
Json format (#2)
* Added new format
* Fixed bug
* Updated Version
Diffstat (limited to '')
| -rw-r--r-- | src/main/java/cuchaz/enigma/mapping/TranslationDirection.java (renamed from src/cuchaz/enigma/mapping/TranslationDirection.java) | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/cuchaz/enigma/mapping/TranslationDirection.java b/src/main/java/cuchaz/enigma/mapping/TranslationDirection.java index bc3aaa1..8329d0d 100644 --- a/src/cuchaz/enigma/mapping/TranslationDirection.java +++ b/src/main/java/cuchaz/enigma/mapping/TranslationDirection.java | |||
| @@ -4,26 +4,26 @@ | |||
| 4 | * are made available under the terms of the GNU Lesser General Public | 4 | * are made available under the terms of the GNU Lesser General Public |
| 5 | * License v3.0 which accompanies this distribution, and is available at | 5 | * License v3.0 which accompanies this distribution, and is available at |
| 6 | * http://www.gnu.org/licenses/lgpl.html | 6 | * http://www.gnu.org/licenses/lgpl.html |
| 7 | * | 7 | * <p> |
| 8 | * Contributors: | 8 | * Contributors: |
| 9 | * Jeff Martin - initial API and implementation | 9 | * Jeff Martin - initial API and implementation |
| 10 | ******************************************************************************/ | 10 | ******************************************************************************/ |
| 11 | package cuchaz.enigma.mapping; | 11 | package cuchaz.enigma.mapping; |
| 12 | 12 | ||
| 13 | public enum TranslationDirection { | 13 | public enum TranslationDirection { |
| 14 | 14 | ||
| 15 | Deobfuscating { | 15 | Deobfuscating { |
| 16 | @Override | 16 | @Override |
| 17 | public <T> T choose(T deobfChoice, T obfChoice) { | 17 | public <T> T choose(T deobfChoice, T obfChoice) { |
| 18 | return deobfChoice; | 18 | return deobfChoice; |
| 19 | } | 19 | } |
| 20 | }, | 20 | }, |
| 21 | Obfuscating { | 21 | Obfuscating { |
| 22 | @Override | 22 | @Override |
| 23 | public <T> T choose(T deobfChoice, T obfChoice) { | 23 | public <T> T choose(T deobfChoice, T obfChoice) { |
| 24 | return obfChoice; | 24 | return obfChoice; |
| 25 | } | 25 | } |
| 26 | }; | 26 | }; |
| 27 | 27 | ||
| 28 | public abstract <T> T choose(T deobfChoice, T obfChoice); | 28 | public abstract <T> T choose(T deobfChoice, T obfChoice); |
| 29 | } | 29 | } |