diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-12-13 11:12:48 +0100 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-12-13 11:12:48 +0100 |
commit | d8f9c7946cabe1ce5c92d76495c790f92014be95 (patch) | |
tree | c9a6bb534ed44f837a0ee757cb70b8ef21cfdc51 /src/eu/equalparts/cardbase | |
parent | 848b6b82eb318abcf4eeb2054bcb79bb2dd51bab (diff) |
Looking into a way to fix the count issue
Diffstat (limited to 'src/eu/equalparts/cardbase')
-rw-r--r-- | src/eu/equalparts/cardbase/CardEntry.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/eu/equalparts/cardbase/CardEntry.java b/src/eu/equalparts/cardbase/CardEntry.java new file mode 100644 index 0000000..c4a4c94 --- /dev/null +++ b/src/eu/equalparts/cardbase/CardEntry.java @@ -0,0 +1,25 @@ +package eu.equalparts.cardbase; + +import eu.equalparts.cardbase.cards.Card; + +/** + * The purpose of this class is to hold a single {@code Card} object but + * also all associated metadata, such as count. + * + * @author Eduardo Pedroni + * + */ +public class CardEntry { + + private final Card card; + public int count; + + public CardEntry(Card card, int count) { + this.card = card; + this.count = count; + } + + public Card card() { + return card; + } +} |