org.ninm.games.cardgames.common
Class Joker

java.lang.Object
  |
  +--org.ninm.games.cardgames.common.Card
        |
        +--org.ninm.games.cardgames.common.Joker

public class Joker
extends Card

A special type of card

Version:
1.0
Author:
Nikolay

Field Summary
private  java.lang.Object m_jokerID
           
 
Fields inherited from class org.ninm.games.cardgames.common.Card
m_deckID, m_face, m_suit
 
Constructor Summary
Joker(java.lang.Object deckID, java.lang.Object jokerID)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          compares the members for equality
 int hashCode()
          the hashcode based on the members
 
Methods inherited from class org.ninm.games.cardgames.common.Card
getDeckID, getFace, getSuit, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_jokerID

private final java.lang.Object m_jokerID
Constructor Detail

Joker

public Joker(java.lang.Object deckID,
             java.lang.Object jokerID)
Method Detail

equals

public boolean equals(java.lang.Object other)
Description copied from class: Card
compares the members for equality

Overrides:
equals in class Card
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Description copied from class: Card
the hashcode based on the members

Overrides:
hashCode in class Card
See Also:
Object.hashCode()

SourceForge.net Logo