@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final FiveCardPokerHand other = (FiveCardPokerHand) obj;
        
        if (this.getCards() != other.getCards() && (this.getCards() == null || !this.getCardSet().equals(other.getCardSet()))) {
            return false;
        }
        if (this.getMaximumAmountOfCardsInCollection() != other.getMaximumAmountOfCardsInCollection()) {
            return false;
        }
        
        return true;
    }