-footer

garrettsmith.playingcards
Class Card.Suit

java.lang.Object
  extended by garrettsmith.playingcards.Card.Suit
Enclosing class:
Card

public static class Card.Suit
extends java.lang.Object

Represents a card's suit, such as spades or clubs.


Field Summary
static Card.Suit CLUB
          Represents the clubs.
static Card.Suit DIAMOND
          Represents the diamonds.
static Card.Suit HEART
          Represents the hearts.
static Card.Suit NONE
          Represents no suit.
static Card.Suit SPADE
          Represents the spades.
 
Method Summary
protected  java.lang.Object clone()
           
 boolean equals(java.lang.Object object)
          Returns whether object is equal to this suit.
 int hashCode()
          Returns a hash value for this card.
 java.lang.String toString()
          Returns a string representation of this value.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLUB

public static final Card.Suit CLUB
Represents the clubs.


DIAMOND

public static final Card.Suit DIAMOND
Represents the diamonds.


NONE

public static final Card.Suit NONE
Represents no suit.


HEART

public static final Card.Suit HEART
Represents the hearts.


SPADE

public static final Card.Suit SPADE
Represents the spades.

Method Detail

equals

public boolean equals(java.lang.Object object)
Returns whether object is equal to this suit.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hash value for this card.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash value for this object.

toString

public java.lang.String toString()
Returns a string representation of this value.

Overrides:
toString in class java.lang.Object

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

-footer

Copyright 2001-5 Garrett Smith. Use is subject to license terms.