A C D E F G H I M N P R S T

C

Card - Class in program4
Title: The Card Class
Card() - Constructor for class program4.Card
Card default constructor -- gets called when an object of the Card class is instantiated -- rank and suit are randomly defined
Card(int) - Constructor for class program4.Card
Card constructor -- gets called when an object of the Card class is instantiated -- based upon the number received it determines the rank and suit of the card
Card(int, int) - Constructor for class program4.Card
Card constructor -- gets called when an object of the Card class is instantiated -- r represents the rank, and s represents the suit of the card
cards - Variable in class program4.Deck
ArrayList of Cards
compareByRank(Card) - Method in class program4.Card
compareByRank -- this method compares 2 Card objects by rank and returns a negative integer, zero, or a positive integer as this Card is less than, equal to, or greater than the other Card.
For example the following call: card1.compareByRank(card2);
compares if the rank of card1 is greater than card2, is equal to card2, or is less than card2 and returns the appropriate value
compareBySuit(Card) - Method in class program4.Card
compareBySuit -- this method compares 2 Card objects by suit and returns a negative integer, zero, or a positive integer as this Card is less than, equal to, or greater than the other Card.
For example the following call: card1.compareBySuit(card2);
compares if the suit of card1 is greater than card2, is equal to card2, or is less than card2 and returns the appropriate value
compareTo(GoFishCard) - Method in class program4.GoFishCard
 
convertToRank(String) - Static method in class program4.GoFishCard
A static method that converts a string to a card's equivalent rank
countRank(int) - Method in class program4.Hand
Counts the number of cards of a particular rank in the hand

A C D E F G H I M N P R S T