From d8f9c7946cabe1ce5c92d76495c790f92014be95 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sun, 13 Dec 2015 11:12:48 +0100 Subject: Looking into a way to fix the count issue --- src/eu/equalparts/cardbase/CardEntry.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/eu/equalparts/cardbase/CardEntry.java (limited to 'src/eu/equalparts/cardbase') 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; + } +} -- cgit v1.2.3