public static enum PeerFlags.Policy extends Enum<PeerFlags.Policy>
Enum Constant and Description |
---|
POST_POLICY |
PRE_POLICY |
Modifier and Type | Method and Description |
---|---|
<R> R |
map(java.util.function.Function<PeerFlags.Policy,R> mapper) |
static PeerFlags.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeerFlags.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeerFlags.Policy PRE_POLICY
public static final PeerFlags.Policy POST_POLICY
public static PeerFlags.Policy[] values()
for (PeerFlags.Policy c : PeerFlags.Policy.values()) System.out.println(c);
public static PeerFlags.Policy 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 <R> R map(java.util.function.Function<PeerFlags.Policy,R> mapper)
Copyright © 2020. All rights reserved.