package de.flux.playground.deckcompare.analyze;

import de.flux.playground.deckcompare.dto.Card;

public final class CardConflictAnalyzer {
    
    private CardConflictAnalyzer() {
    }

    public static boolean conflicted(Card card, Card otherCard) {

        boolean isConflicted = false;

        if (card.equals(otherCard)) {
            int overallQunatity = card.getQuantity() + otherCard.getQuantity();
            isConflicted = overallQunatity > 3;
        }

        return isConflicted;
    }

}

@@ -133,20 +133,16 @@
 lyzer %7B%0A
-    
 %0A    pri
@@ -343,26 +343,26 @@
 nt overallQu
-n
 a
+n
 tity = card.
@@ -438,18 +438,18 @@
 verallQu
-n
 a
+n
 tity %3E 3

Fix typo