-footer

garrettsmith.playingcards
Class Card.Value

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

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

Represents a card's value: two, queen, or ace, for example.


Field Summary
static Card.Value ACE
          Represents a ace.
static Card.Value EIGHT
          Represents a eight.
static Card.Value FIVE
          Represents a five.
static Card.Value FOUR
          Represents a four.
static Card.Value JACK
          Represents a jack.
static Card.Value JOKER
          Represents a joker.
static Card.Value KING
          Represents a king.
static Card.Value NINE
          Represents a nine.
static Card.Value QUEEN
          Represents a queen.
static Card.Value SEVEN
          Represents a seven.
static Card.Value SIX
          Represents a six.
static Card.Value TEN
          Represents a ten.
static Card.Value THREE
          Represents a three.
static Card.Value TWO
          Represents a two.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns whether object is equal to this Value.
 int hashCode()
          Returns a hash value for this card.
 java.lang.String toString()
          Returns a string repesentation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TWO

public static final Card.Value TWO
Represents a two.


THREE

public static final Card.Value THREE
Represents a three.


FOUR

public static final Card.Value FOUR
Represents a four.


FIVE

public static final Card.Value FIVE
Represents a five.


SIX

public static final Card.Value SIX
Represents a six.


SEVEN

public static final Card.Value SEVEN
Represents a seven.


EIGHT

public static final Card.Value EIGHT
Represents a eight.


NINE

public static final Card.Value NINE
Represents a nine.


TEN

public static final Card.Value TEN
Represents a ten.


JACK

public static final Card.Value JACK
Represents a jack.


QUEEN

public static final Card.Value QUEEN
Represents a queen.


KING

public static final Card.Value KING
Represents a king.


ACE

public static final Card.Value ACE
Represents a ace.


JOKER

public static final Card.Value JOKER
Represents a joker.

Method Detail

equals

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

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.
See Also:
the java.lang.Object API specification

toString

public java.lang.String toString()
Returns a string repesentation.

Overrides:
toString in class java.lang.Object

-footer

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