public enum BgpVersion extends Enum<BgpVersion>
| Enum Constant and Description |
|---|
BGP_4 |
| Modifier and Type | Field and Description |
|---|---|
int |
packetVersion |
| Modifier and Type | Method and Description |
|---|---|
int |
getPacketVersion()
Returns Packet version of BGP Message.
|
static BgpVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BgpVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BgpVersion BGP_4
public static BgpVersion[] values()
for (BgpVersion c : BgpVersion.values()) System.out.println(c);
public static BgpVersion 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 int getPacketVersion()