diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-07-22 12:34:32 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-07-22 12:34:32 +0200 |
commit | 2de3bf57cd21d5cf60723fca59f61d3bc69578dd (patch) | |
tree | fb2efa7507c25f80b9e05983dc6e1acb69861f16 /src/eu/equalparts/cardbase/utils | |
parent | 2227aaf4cdee9535dedc28d570d6fdf2d38d1fe3 (diff) |
Finished basic Cardbase tests, doing CLI next
Diffstat (limited to 'src/eu/equalparts/cardbase/utils')
-rw-r--r-- | src/eu/equalparts/cardbase/utils/UID.java | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/eu/equalparts/cardbase/utils/UID.java b/src/eu/equalparts/cardbase/utils/UID.java deleted file mode 100644 index ae4a11d..0000000 --- a/src/eu/equalparts/cardbase/utils/UID.java +++ /dev/null @@ -1,33 +0,0 @@ -package eu.equalparts.cardbase.utils; - -import eu.equalparts.cardbase.cards.Card; - -public class UID { - - /** - * Used in the hash generation. - */ - private static final String HASH_DIVIDER = "~"; - - /** - * Generate the hash used as a key in the storage map. - * - * @param setCode the card's set code. - * @param number the card's set number. - * @return the generated hash. - */ - public static String makeHash(String setCode, String number) { - return setCode + HASH_DIVIDER + number; - } - - /** - * Generate the hash used as a key in the storage map. - * - * @param the {@code Card} whose hash is desired. - * @return the generated hash. - */ - public static String makeHash(Card card) { - return card.setCode + HASH_DIVIDER + card.number; - } - -} |