// Suit.java - John K. Estell - 8 May 2003 // last modified: 23 Febraury 2004 // Implementation of the "suit" value for a playing card. import java.util.*; /** * Specification of the suit values for a standard deck of cards. */ public final class Suit implements Comparable { // instance variables for suit // your code goes here /** * The suit clubs. */ // your code goes here /** * The suit diamonds. */ // your code goes here /** * The suit hearts. */ // your code goes here /** * The suit spades. */ // your code goes here /** * List of all suit values. Primarily for use with iteration. */ // your code goes here // Constructor - declared private as only the predefined values should // be used by the client. private Suit( String nameValue, String symbolValue ) { // your code goes here } /** * Returns a description of this suit. * @return the name of the suit. */ public String getName() { // your code goes here } /** * The symbol associated with this suit. Returns the symbol, which * usually constitutes a single character, in the form of a string. * Symbol is used for the construction of the filenames of the card images. * @return string containing the symbol for the suit. */ public String getSymbol() { // your code goes here } /** * Returns a description of this suit. * @return the name of this suit. */ public String toString() { // your code goes here } /** * Compares the suits. Used for the purpose of sorting cards in a hand or deck. * @param otherSuitObject the other suit. * @return < 0 if this suit is lower than the other suit, 0 if the suits * are the same, or > 0 if this suit is higher than the other suit. */ public int compareTo( Object otherSuitObject ) { // your code goes here } }