Class VlanId


  • public final class VlanId
    extends Identifier<java.lang.Short>
    Representation of a VLAN identifier.
    • Method Detail

      • vlanId

        public static VlanId vlanId()
        Creates a VLAN identifier for untagged VLAN.
        Returns:
        VLAN identifier
      • vlanId

        public static VlanId vlanId​(short value)
        Creates a VLAN identifier using the supplied VLAN identifier.
        Parameters:
        value - VLAN identifier expressed as short
        Returns:
        VLAN identifier
      • vlanId

        public static VlanId vlanId​(java.lang.String value)
        Creates a VLAN identifier Object using the supplied VLAN identifier.
        Parameters:
        value - VLAN identifier expressed as string
        Returns:
        VLAN identifier
      • toShort

        public short toShort()
        Returns the backing VLAN number.
        Returns:
        VLAN number
      • toString

        public java.lang.String toString()
        Description copied from class: Identifier
        Returns a string representation of a DeviceKeyId.
        Overrides:
        toString in class Identifier<java.lang.Short>
        Returns:
        string