za.co.knowles.pokewhat.domain.lookup.ESuit Maven / Gradle / Ivy
package za.co.knowles.pokewhat.domain.lookup;
import za.co.knowles.pokewhat.domain.Card;
public enum ESuit {
SPADES("♠"), CLUBS("♣"), HEARTS("♥"), DIAMONDS("♦");
private final String picture;
ESuit(String picture) {
this.picture = picture;
}
public String getPicture() {
return picture;
}
public Card the(ERank rank) {
return new Card(this, rank);
}
}