public static enum LldpTlv.Capability extends Enum<LldpTlv.Capability> implements ProtocolEnum
Enum Constant and Description |
---|
BRIDGE
Bridge capability type
|
DOCSIS
DOCSIS capability type.
|
NONE
Default (not set).
|
OTHER
Other capability type.
|
PHONE
Phone capability type.
|
REPEATER
Repeater capability type.
|
ROUTER
Router capability type.
|
STATION_ONLY
Station-only capability type.
|
WLAN_AP
WLAN access point capability type.
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static boolean |
has(LldpTlv.Capability[] caps1,
LldpTlv.Capability... caps2)
Returns true if all the
caps2 are contained within the
caps1 array. |
static LldpTlv.Capability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LldpTlv.Capability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LldpTlv.Capability NONE
public static final LldpTlv.Capability OTHER
public static final LldpTlv.Capability REPEATER
public static final LldpTlv.Capability BRIDGE
public static final LldpTlv.Capability WLAN_AP
public static final LldpTlv.Capability ROUTER
public static final LldpTlv.Capability PHONE
public static final LldpTlv.Capability DOCSIS
public static final LldpTlv.Capability STATION_ONLY
public static LldpTlv.Capability[] values()
for (LldpTlv.Capability c : LldpTlv.Capability.values()) System.out.println(c);
public static LldpTlv.Capability 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 code()
ProtocolEnum
code
in interface ProtocolEnum
public static boolean has(LldpTlv.Capability[] caps1, LldpTlv.Capability... caps2)
caps2
are contained within the
caps1
array.caps1
- array of capabilitiescaps2
- array of capabilitiescaps2
is contained within caps1
Copyright © 2015. All Rights Reserved.