aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts
diff options
context:
space:
mode:
Diffstat (limited to 'src/eu/equalparts')
-rw-r--r--src/eu/equalparts/cardbase/CardEntry.java25
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;
+ }
+}