Class Deck

java.lang.Object
mapreduce.apps.cards.core.Deck
All Implemented Interfaces:
java.lang.Iterable<Card>

@NotThreadSafe
public final class Deck
extends java.lang.Object
implements java.lang.Iterable<Card>
Author:
Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
  • Constructor Summary

    Constructors 
    Constructor Description
    Deck()  
    Deck​(Card... cards)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Iterator<Card> iterator()  
    void shuffle()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

  • Method Details

    • shuffle

      public void shuffle()
    • iterator

      public java.util.Iterator<Card> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<Card>
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object