Package me.ramendev.expokert
Class FixedWildcard
java.lang.Object
me.ramendev.expokert.Card
me.ramendev.expokert.Wildcard
me.ramendev.expokert.FixedWildcard
- Direct Known Subclasses:
Joker
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.ramendev.expokert.Card
getAllCards, toString
-
Constructor Details
-
FixedWildcard
Constructor for a fixed wildcard.- Parameters:
conversions- The set ofCards that this wildcard can convert to.- Throws:
IllegalCardException- If the given set of conversions is empty. This entirely defeats the purpose of making a wildcard.
-
-
Method Details
-
getConversions
Gets all theCards that this wildcard can convert to. In this case, it is a trivial getter ofconversions.- Specified by:
getConversionsin classWildcard- Returns:
- The set of all cards that this wildcard can convert to.
-