Your getRank and getSuit functions aren't right. The purpose of get functions is to return the value of a private variable to the caller, without giving them access to the actual value within the class. All that getSuit and getRank should do is return the value that is already held by suit and rank, respectively (if you look at your assignment, getRank is supposed to return an int, while getSuit returns a char. Neither of them should accept any parameters).
How would I go about creating the equals() method? I made another CardType under CardType a; I'm just not sure how i would i check if they are both equal. Maybe im missing something with the UML model. What does equals(c:card) : boolean mean? I know it should mean that the type is boolean the name of the method is equals but the (c:Card) confuses me.