de.kosi.model.game
Class CardList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--de.kosi.model.game.CardList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class CardList
extends java.util.Vector
implements java.io.Serializable

List of cards.

ChangeLog:

 $Log: CardList.java,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.


 

Version:
$Revision: 1.4 $ ($Date: 2001/06/15 12:06:10 $)
Author:
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
modCount
 
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

serialVersionUID

public static final long serialVersionUID
Serial version id.
Constructor Detail

CardList

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

containsSuit

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