public enum SelectionOrder extends Enum<SelectionOrder>
Enum Constant and Description |
---|
INHERIT
Inherit the value from the parent
SelectorConfig . |
ORIGINAL
Select the elements in original order.
|
PROBABILISTIC
Select in random order, based on the selection probability of each element.
|
RANDOM
Select in random order, without shuffling the elements.
|
SHUFFLED
Select in random order by shuffling the elements when a selection iterator is created.
|
SORTED
Select in sorted order by sorting the elements.
|
Modifier and Type | Method and Description |
---|---|
static SelectionOrder |
fromRandomSelectionBoolean(boolean randomSelection) |
static SelectionOrder |
resolve(SelectionOrder selectionOrder,
SelectionOrder inheritedSelectionOrder) |
boolean |
toRandomSelectionBoolean() |
static SelectionOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SelectionOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SelectionOrder INHERIT
SelectorConfig
. If the parent is cached,
the value is changed to ORIGINAL
.
This is the default. If there is no such parent, then it defaults to RANDOM
.
public static final SelectionOrder ORIGINAL
public static final SelectionOrder SORTED
SelectionCacheType.STEP
or higher.public static final SelectionOrder RANDOM
public static final SelectionOrder SHUFFLED
SelectionCacheType.STEP
or higher.public static final SelectionOrder PROBABILISTIC
SelectionCacheType.STEP
or higher.public static SelectionOrder[] values()
for (SelectionOrder c : SelectionOrder.values()) System.out.println(c);
public static SelectionOrder 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 SelectionOrder resolve(SelectionOrder selectionOrder, SelectionOrder inheritedSelectionOrder)
selectionOrder
- sometimes nullinheritedSelectionOrder
- never nullpublic static SelectionOrder fromRandomSelectionBoolean(boolean randomSelection)
public boolean toRandomSelectionBoolean()
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.