Class UnitEstimationExtensions


  • public final class UnitEstimationExtensions
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<de.alpharogroup.lottery.wincategories.LotteryWinCategory,​de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory>> calculateFromSecondTillEighthClass​(double restUnitsOfPot)  
      static java.util.Map<de.alpharogroup.lottery.wincategories.LotteryWinCategory,​de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory>> calculateLotteryPot​(double unitsInPot, double unitsOfWinClassNine)  
      static double calculatePotForSecondTillEighthClass​(double restUnitsOfPot, double unitsOfWinClassNine)  
      static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getEighthClassPortion​(double restUnitsOfPot)  
      static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getFifthClassPortion​(double restUnitsOfPot)  
      static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getFirstClassPortion​(double unitsInPot)  
      static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getFourthClassPortion​(double restUnitsOfPot)  
      static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getSecondClassPortion​(double restUnitsOfPot)  
      static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getSeventhClassPortion​(double restUnitsOfPot)  
      static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getSixthClassPortion​(double restUnitsOfPot)  
      static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getThirdClassPortion​(double restUnitsOfPot)  
      static double percentageOf​(double value, double percentage)
      Calculates the percentage of the given value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • calculateFromSecondTillEighthClass

        public static java.util.Map<de.alpharogroup.lottery.wincategories.LotteryWinCategory,​de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory>> calculateFromSecondTillEighthClass​(double restUnitsOfPot)
      • calculateLotteryPot

        public static java.util.Map<de.alpharogroup.lottery.wincategories.LotteryWinCategory,​de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory>> calculateLotteryPot​(double unitsInPot,
                                                                                                                                                                                                                                      double unitsOfWinClassNine)
      • calculatePotForSecondTillEighthClass

        public static double calculatePotForSecondTillEighthClass​(double restUnitsOfPot,
                                                                  double unitsOfWinClassNine)
      • getEighthClassPortion

        public static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getEighthClassPortion​(double restUnitsOfPot)
      • getFifthClassPortion

        public static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getFifthClassPortion​(double restUnitsOfPot)
      • getFirstClassPortion

        public static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getFirstClassPortion​(double unitsInPot)
      • getFourthClassPortion

        public static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getFourthClassPortion​(double restUnitsOfPot)
      • getSecondClassPortion

        public static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getSecondClassPortion​(double restUnitsOfPot)
      • getSeventhClassPortion

        public static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getSeventhClassPortion​(double restUnitsOfPot)
      • getSixthClassPortion

        public static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getSixthClassPortion​(double restUnitsOfPot)
      • getThirdClassPortion

        public static de.alpharogroup.lottery.wincategories.WinEvaluation<de.alpharogroup.lottery.wincategories.LotteryWinCategory> getThirdClassPortion​(double restUnitsOfPot)
      • percentageOf

        public static double percentageOf​(double value,
                                          double percentage)
        Calculates the percentage of the given value
        Parameters:
        value - The value
        percentage - The percentage
        Returns:
        the result of the percentage of the given value