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