ks.common.model
Class CardEnumeration

java.lang.Object
  extended byks.common.model.CardEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class CardEnumeration
extends java.lang.Object
implements java.util.Enumeration

Returns an Enumeration of Card objects, from ACE-Club through KING-spades.

Creation date: (10/2/01 12:18:23 AM)


Constructor Summary
CardEnumeration()
          Construct a CardEnumeration that will enumerate over all cards in a normal playing deck, starting from ACE of CLUBS through to KING of SPADES.
 
Method Summary
 boolean hasMoreElements()
          Returns true if there are more Cards in this Enumeration.
 java.lang.Object nextElement()
          Returns the current Card in the Enumeration and moves on.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardEnumeration

public CardEnumeration()
Construct a CardEnumeration that will enumerate over all cards in a normal playing deck, starting from ACE of CLUBS through to KING of SPADES.

Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns true if there are more Cards in this Enumeration.

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Returns the current Card in the Enumeration and moves on.

Specified by:
nextElement in interface java.util.Enumeration