public enum AssignStrategy extends Enum<AssignStrategy>
| Enum Constant and Description |
|---|
RANDOM |
ROUND_ROBIN |
SECURE_RANDOM |
| Modifier and Type | Method and Description |
|---|---|
static AssignStrategy |
getAssignedStrategy(String givenStrategy,
AssignStrategy defaultStrategy) |
String |
getStrategyName() |
static AssignStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AssignStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AssignStrategy RANDOM
public static final AssignStrategy SECURE_RANDOM
public static final AssignStrategy ROUND_ROBIN
public static AssignStrategy[] values()
for (AssignStrategy c : AssignStrategy.values()) System.out.println(c);
public static AssignStrategy 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 AssignStrategy getAssignedStrategy(String givenStrategy, AssignStrategy defaultStrategy)
public String getStrategyName()
Copyright © 2019. All rights reserved.