Class CircuitId


  • public class CircuitId
    extends Object
    Representation of DHCP option 82 Circuit id.
    • Constructor Detail

      • CircuitId

        public CircuitId​(String connectPoint,
                         VlanId vlanId)
        Creates a circuit id by given information.
        Parameters:
        connectPoint - the connect point of circuit id
        vlanId - the vlan id of circuit id
    • Method Detail

      • serialize

        public byte[] serialize()
        Combines connect point with vlan id with separator ':' as circuit id. e.g. of:0000000000000204/1:100
        Returns:
        serialized circuit id for connect point and vlan ID
      • deserialize

        public static CircuitId deserialize​(byte[] circuitId)
        Deserialize circuit id from byte string.
        Parameters:
        circuitId - the circuit id byte string
        Returns:
        a Circuit Id
      • connectPoint

        public String connectPoint()
        Gets the connect point of circuit id.
        Returns:
        the connect point
      • vlanId

        public VlanId vlanId()
        Gets the vlan id of circuit id.
        Returns:
        the vlan id
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object