diff options
-rw-r--r-- | src/eu/equalparts/cardbase/CardEntry.java | 25 | ||||
-rw-r--r-- | todo | 4 |
2 files changed, 26 insertions, 3 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; + } +} @@ -1,6 +1,4 @@ TESTS Cardbase: - * decks - -To pass: happy path remove
\ No newline at end of file + * decks
\ No newline at end of file |