public final class LotteryExtensions extends Object
LotteryExtensions provides utility methods for draw lottery, super numbers and
other gambling algorithms.| Constructor and Description |
|---|
LotteryExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateDraws(de.alpharogroup.lottery.played.LotteryPlayedNumbers lotteryPlayedNumbers,
int winningNumbersCount)
Calculate draws for statistics.
|
static int |
calculateDraws(de.alpharogroup.lottery.played.LotteryPlayedNumbers lotteryPlayedNumbers,
int winningNumbersCount,
int maxIterations)
Calculate draws for statistics.
|
static int |
calculateDraws(de.alpharogroup.lottery.ticket.LotteryTicket lotteryTicket,
@NonNull de.alpharogroup.lottery.wincategories.LotteryWinCategory lotteryWinCategory)
Calculate how much draws will be needed to win with the given lottery ticket in the given win
category.
|
static int |
calculateDraws(de.alpharogroup.lottery.ticket.LotteryTicket lotteryTicket,
@NonNull de.alpharogroup.lottery.wincategories.LotteryWinCategory lotteryWinCategory,
int maxIterations)
This method provides calculation of how much draws will be needed to win with the given
lottery ticket in the given win category.
|
static double |
calculateElapsedTimeInSeconds(long startTime)
Calculate elapsed time in seconds from the given start time as long to the current system
time.
|
static de.alpharogroup.lottery.evaluation.EvaluatedLotteryNumbers |
checkResult(de.alpharogroup.lottery.drawings.DrawnLotteryNumbers drawnLotteryNumbers,
de.alpharogroup.lottery.played.LotteryPlayedNumbers lotteryPlayedNumbers)
Checks the result if the drawn lottery numbers are equal to the given played numbers.
|
static void |
evaluate(de.alpharogroup.lottery.drawings.DrawnLotteryNumbers drawnLotteryNumbers,
de.alpharogroup.lottery.ticket.LotteryTicket playedLotteryTicket)
Evaluate the given lottery ticket from the given drawn numbers.
|
static void |
setWinCategories(de.alpharogroup.lottery.evaluation.EvaluatedLotteryNumbers evaluatedLotteryNumbers) |
public static de.alpharogroup.lottery.evaluation.EvaluatedLotteryNumbers checkResult(de.alpharogroup.lottery.drawings.DrawnLotteryNumbers drawnLotteryNumbers,
de.alpharogroup.lottery.played.LotteryPlayedNumbers lotteryPlayedNumbers)
EvaluatedLotteryNumbers object that keep the winning numbers.drawnLotteryNumbers - the drawn lottery numbers are the numbers that are drawn from the lottery
corporationlotteryPlayedNumbers - the lottery played numbers are the numbers that are played from the userspublic static void evaluate(de.alpharogroup.lottery.drawings.DrawnLotteryNumbers drawnLotteryNumbers,
de.alpharogroup.lottery.ticket.LotteryTicket playedLotteryTicket)
drawnLotteryNumbers - the drawn lottery numbersplayedLotteryTicket - the played lottery ticketpublic static void setWinCategories(de.alpharogroup.lottery.evaluation.EvaluatedLotteryNumbers evaluatedLotteryNumbers)
public static int calculateDraws(de.alpharogroup.lottery.ticket.LotteryTicket lotteryTicket,
@NonNull
@NonNull de.alpharogroup.lottery.wincategories.LotteryWinCategory lotteryWinCategory)
lotteryTicket - the lottery ticketlotteryWinCategory - the lottery win categorypublic static int calculateDraws(de.alpharogroup.lottery.ticket.LotteryTicket lotteryTicket,
@NonNull
@NonNull de.alpharogroup.lottery.wincategories.LotteryWinCategory lotteryWinCategory,
int maxIterations)
lotteryTicket - the lottery ticketlotteryWinCategory - the lottery win categorymaxIterations - the max iterations in the while looppublic static int calculateDraws(de.alpharogroup.lottery.played.LotteryPlayedNumbers lotteryPlayedNumbers,
int winningNumbersCount)
lotteryPlayedNumbers - the lottery played numberswinningNumbersCount - the winning numbers countpublic static int calculateDraws(de.alpharogroup.lottery.played.LotteryPlayedNumbers lotteryPlayedNumbers,
int winningNumbersCount,
int maxIterations)
lotteryPlayedNumbers - the lottery played numberswinningNumbersCount - the winning numbers countmaxIterations - the max iterations in the while looppublic static double calculateElapsedTimeInSeconds(long startTime)
startTime - the start timeCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.