Package com.treescrub.spedran.data
Class CategoryPlayers
- java.lang.Object
-
- com.treescrub.spedran.data.CategoryPlayers
-
public class CategoryPlayers extends Object
Contains the rules for how many players can participate in the category.
This class is immutable and thread-safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPlayers()Gets the number of allowed players.booleanisExact()Iftrue, there must be exactlygetPlayers()players.StringtoString()
-
-
-
Method Detail
-
isExact
public boolean isExact()
Iftrue, there must be exactlygetPlayers()players. Iffalse, there can be up togetPlayers()players.- Returns:
trueif there must be an exact amount of runners,falseotherwise
-
getPlayers
public int getPlayers()
Gets the number of allowed players.- Returns:
- player count
-
-