Beispiel #1
0
 @Override
 public int hashCode() {
   // ignore suit if joker
   if (rank.equals(PokerRank.JOKER)) {
     return rank.hashCode();
   } else {
     int result = rank.hashCode();
     return 31 * result + (suit != null ? suit.hashCode() : 0);
   }
 }