Package de.alpharogroup.lottery.drawing
Class DrawnLotteryNumbersFactory
- java.lang.Object
-
- de.alpharogroup.lottery.drawing.DrawnLotteryNumbersFactory
-
public final class DrawnLotteryNumbersFactory extends java.lang.ObjectA factory for creatingDrawnLotteryNumbersobjects with generated lottery numbers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.Integer,java.lang.Integer>newNumberCounterMap(int minVolume, int maxVolume)Factory method for create a map for count drawn numbersstatic java.util.Map<java.lang.Integer,java.lang.Integer>newNumberCounterMap(int minVolume, int maxVolume, java.util.Map<java.lang.Integer,java.lang.Integer> numberCounterMap)Factory method for create a map for count drawn numbers and will be summarized with the given Mapstatic de.alpharogroup.lottery.drawings.DrawnLotteryNumbersnewRandomDrawnLotteryNumbers()Factory method for create a newDrawnLotteryNumbersobject with all drawn numbersstatic de.alpharogroup.lottery.drawings.DrawnLotteryNumbersnewRandomDrawnLotteryNumbers(int max, int volume)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbersstatic de.alpharogroup.lottery.drawings.DrawnLotteryNumbersnewRandomDrawnLotteryNumbers(int max, int minVolume, int maxVolume)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbersstatic de.alpharogroup.lottery.drawings.DrawnLotteryNumbersnewRandomDrawnLotteryNumbers(int max, int minVolume, int maxVolume, int drawCount, de.alpharogroup.lottery.enums.LotteryAlgorithm algorithm)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers with the given algorithmstatic de.alpharogroup.lottery.drawings.DrawnLotteryNumbersnewRandomDrawnLotteryNumbers(int max, int minVolume, int maxVolume, de.alpharogroup.lottery.enums.LotteryAlgorithm algorithm)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers with the given algorithmstatic de.alpharogroup.lottery.drawings.DrawnLotteryNumbersnewRandomDrawnLotteryNumbersDefaultAlgorithm(int max, int volume)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers
-
-
-
Method Detail
-
newNumberCounterMap
public static java.util.Map<java.lang.Integer,java.lang.Integer> newNumberCounterMap(int minVolume, int maxVolume)Factory method for create a map for count drawn numbers- Parameters:
minVolume- the min volumemaxVolume- the max volume- Returns:
- the new map with the initial values
-
newNumberCounterMap
public static java.util.Map<java.lang.Integer,java.lang.Integer> newNumberCounterMap(int minVolume, int maxVolume, java.util.Map<java.lang.Integer,java.lang.Integer> numberCounterMap)Factory method for create a map for count drawn numbers and will be summarized with the given Map- Parameters:
minVolume- the min volumemaxVolume- the max volumenumberCounterMap- the Map that will be summarized- Returns:
- the new map with the initial values
-
newRandomDrawnLotteryNumbers
public static de.alpharogroup.lottery.drawings.DrawnLotteryNumbers newRandomDrawnLotteryNumbers()
Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers- Returns:
- the new
DrawnLotteryNumbers
-
newRandomDrawnLotteryNumbers
public static de.alpharogroup.lottery.drawings.DrawnLotteryNumbers newRandomDrawnLotteryNumbers(int max, int volume)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers- Parameters:
max- the max number to drawvolume- the volume of the numbers starts from 1 till volume- Returns:
- the new
DrawnLotteryNumbers
-
newRandomDrawnLotteryNumbers
public static de.alpharogroup.lottery.drawings.DrawnLotteryNumbers newRandomDrawnLotteryNumbers(int max, int minVolume, int maxVolume)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers- Parameters:
max- the max number to drawminVolume- the min volumemaxVolume- the max volume- Returns:
- the new
DrawnLotteryNumbers
-
newRandomDrawnLotteryNumbers
public static de.alpharogroup.lottery.drawings.DrawnLotteryNumbers newRandomDrawnLotteryNumbers(int max, int minVolume, int maxVolume, int drawCount, de.alpharogroup.lottery.enums.LotteryAlgorithm algorithm)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers with the given algorithm- Parameters:
max- the max number to drawminVolume- the min volumemaxVolume- the max volumedrawCount- the draw count defines how many times to draw numbers. Note: only with map algorithmalgorithm- the algorithm to use- Returns:
- the new
DrawnLotteryNumbers
-
newRandomDrawnLotteryNumbers
public static de.alpharogroup.lottery.drawings.DrawnLotteryNumbers newRandomDrawnLotteryNumbers(int max, int minVolume, int maxVolume, de.alpharogroup.lottery.enums.LotteryAlgorithm algorithm)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers with the given algorithm- Parameters:
max- the max number to drawminVolume- the min volumemaxVolume- the max volumealgorithm- the algorithm to use- Returns:
- the new
DrawnLotteryNumbers
-
newRandomDrawnLotteryNumbersDefaultAlgorithm
public static de.alpharogroup.lottery.drawings.DrawnLotteryNumbers newRandomDrawnLotteryNumbersDefaultAlgorithm(int max, int volume)Factory method for create a newDrawnLotteryNumbersobject with all drawn numbers- Parameters:
max- the max number to drawvolume- the volume of the numbers starts from 1 till volume- Returns:
- the new
DrawnLotteryNumbers
-
-