public enum LotteryWinCategory extends Enum<LotteryWinCategory>
LotteryWinCategory represents all lottery winning categories.| Enum Constant and Description |
|---|
EIGHTH_CLASS
The eighth winning class.
|
FIFTH_CLASS
The fifth winning class.
|
FIRST_CLASS
The first winning class.
|
FOURTH_CLASS
The fourth winning class.
|
NINTH_CLASS
The ninth winning class.
|
NONE
The none winning class.
|
SECOND_CLASS
The second winning class.
|
SEVENTH_CLASS
The seventh winning class.
|
SIXTH_CLASS
The sixth winning class.
|
THIRD_CLASS
The third winning class.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<LotteryWinCategory> |
getLotteryWinCategory(Collection<Integer> wonLotteryTicket,
boolean withSuperNumber)
Gets an Optional with the LotteryWinCategory from the given
Collection that contains the result of an intersection with the drawn lottery numbers.
|
static Optional<LotteryWinCategory> |
getLotteryWinCategory(Collection<Integer> drawnLotteryNumbers,
Collection<Integer> playedLotteryTicket,
boolean withSuperNumber)
Gets an Optional with the LotteryWinCategory that is an
intersection of the given drawn lottery numbers and the given played lottery Ticket.
|
static LotteryWinCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LotteryWinCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LotteryWinCategory EIGHTH_CLASS
public static final LotteryWinCategory FIFTH_CLASS
public static final LotteryWinCategory FIRST_CLASS
public static final LotteryWinCategory FOURTH_CLASS
public static final LotteryWinCategory NINTH_CLASS
public static final LotteryWinCategory NONE
public static final LotteryWinCategory SECOND_CLASS
public static final LotteryWinCategory SEVENTH_CLASS
public static final LotteryWinCategory SIXTH_CLASS
public static final LotteryWinCategory THIRD_CLASS
public static LotteryWinCategory[] values()
for (LotteryWinCategory c : LotteryWinCategory.values()) System.out.println(c);
public static LotteryWinCategory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Optional<LotteryWinCategory> getLotteryWinCategory(Collection<Integer> wonLotteryTicket, boolean withSuperNumber)
wonLotteryTicket - the won lottery ticketwithSuperNumber - the with super numberpublic static Optional<LotteryWinCategory> getLotteryWinCategory(Collection<Integer> drawnLotteryNumbers, Collection<Integer> playedLotteryTicket, boolean withSuperNumber)
drawnLotteryNumbers - the drawn lottery numbersplayedLotteryTicket - the played lottery ticketwithSuperNumber - the with super numberCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.