Class CardList

All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List,

public class CardList
extends java.util.Vector

List of cards.


 $Log:,v $
 Revision 1.4  2001/06/15 12:06:10  betacarotine
 added serial version UIDs to Trick and CardList.

 Revision 1.3  2001/06/15 11:35:07  betacarotine
 added serialization support to the Trick

 Revision 1.2  2001/05/30 10:19:18  pizarro
 Updated Documentation.

 Revision 1.1  2001/05/23 13:00:39  betacarotine
 Restructured the implementation of the game interface.


$Revision: 1.4 $ ($Date: 2001/06/15 12:06:10 $)
Timo, Niklas, Ole
See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields inherited from class java.util.AbstractList
Constructor Summary
CardList(java.util.Collection c)
          Creates a list of cards that contains the collection of given cards.
Method Summary
 boolean containsSuit(int suit)
          Checks if the cardlist contains a card of the given suit
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
iterator, listIterator, listIterator

Field Detail


public static final long serialVersionUID
Serial version id.
Constructor Detail


public CardList(java.util.Collection c)
Creates a list of cards that contains the collection of given cards.
c - the card collection that should be contained by this new instance
Method Detail


public boolean containsSuit(int suit)
Checks if the cardlist contains a card of the given suit
suit - the suit to check the cardlist for
true if the cardlist contains a card of the given suit, false else