public boolean equalsInContent(Deck d) {
        if (this.cardArray.length != d.cardArray.length)
            return false;
        
        for (int i = 0; i < cardArray.length; i++) {
            if (d.binarySearch(cardArray[i]) == -1) {
                return false;
            }
        }
        
        return true;
    }