public enum VotingStrategy extends Enum<VotingStrategy>
Enum Constant and Description |
---|
AFFIRMATIVE
It is the most lenient strategy.
|
CONSENSUS
It is based on general agreement.
|
PRIORITY
It is based on role/group priorities.
|
UNANIMOUS
It is the less lenient strategy.
|
Modifier and Type | Method and Description |
---|---|
static VotingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VotingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VotingStrategy AFFIRMATIVE
public static final VotingStrategy CONSENSUS
public static final VotingStrategy UNANIMOUS
public static final VotingStrategy PRIORITY
public static VotingStrategy[] values()
for (VotingStrategy c : VotingStrategy.values()) System.out.println(c);
public static VotingStrategy 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 nullCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.