Package com.example.breeze_seas
Class Lottery
java.lang.Object
com.example.breeze_seas.Lottery
Handles entrant selection process of an event by running a lottery
to pick random entrants.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of the losers from the last executed lottery.Returns a copy of the winners from the last executed lottery.voidonRunLottery(StatusList.ListUpdateListener finalListener) Executes the lottery selection process.
-
Constructor Details
-
Lottery
Lottery constructor- Parameters:
event-Eventobject
-
-
Method Details
-
getLastRoundWinners
Returns a copy of the winners from the last executed lottery.- Returns:
- List of
Userobjects who were selected.
-
getLastRoundLosers
Returns a copy of the losers from the last executed lottery.- Returns:
- List of
Userobjects who were not selected.
-
onRunLottery
Executes the lottery selection process.- Parameters:
finalListener- TheStatusList.ListUpdateListenerto notify when complete.
-