public final class VlanId extends Identifier<java.lang.Short>
Modifier and Type | Field and Description |
---|---|
static VlanId |
ANY |
static short |
ANY_VALUE |
static short |
MAX_VLAN |
static short |
NO_VID |
static VlanId |
NONE |
static short |
RESERVED |
static short |
UNTAGGED |
identifier
Modifier and Type | Method and Description |
---|---|
short |
toShort()
Returns the backing VLAN number.
|
java.lang.String |
toString()
Returns a string representation of a DeviceKeyId.
|
static VlanId |
vlanId()
Creates a VLAN identifier for untagged VLAN.
|
static VlanId |
vlanId(short value)
Creates a VLAN identifier using the supplied VLAN identifier.
|
static VlanId |
vlanId(java.lang.String value)
Creates a VLAN identifier Object using the supplied VLAN identifier.
|
equals, hashCode, id
public static final short UNTAGGED
public static final short ANY_VALUE
public static final short NO_VID
public static final short RESERVED
public static final VlanId NONE
public static final VlanId ANY
public static final short MAX_VLAN
public static VlanId vlanId()
public static VlanId vlanId(short value)
value
- VLAN identifier expressed as shortpublic static VlanId vlanId(java.lang.String value)
value
- VLAN identifier expressed as stringpublic short toShort()
public java.lang.String toString()
Identifier
toString
in class Identifier<java.lang.Short>