au.edu.mq.itec802.cardGame
Class Hand

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Card>
              extended by au.edu.mq.itec802.cardGame.Hand
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Card>, java.util.Collection<Card>, java.util.List<Card>, java.util.RandomAccess

public class Hand
extends java.util.ArrayList<Card>

The Class Hand -- models cards in a player's hand.

Version:
$Id: Hand.java 22/03/2011 jumbo$
Author:
Tomas Krajca
See Also:
Serialized Form

Constructor Summary
Hand()
           
 
Method Summary
 java.lang.String toString()
          Serializes cards in player's hand into String
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode
 

Constructor Detail

Hand

public Hand()
Method Detail

toString

public java.lang.String toString()
Serializes cards in player's hand into String

Overrides:
toString in class java.util.AbstractCollection<Card>
Returns:
String representation of cards in a player's hand