Class CircuitId


  • public class CircuitId
    extends java.lang.Object
    Representation of DHCP option 82 Circuit id.
    • Constructor Summary

      Constructors 
      Constructor Description
      CircuitId​(java.lang.String connectPoint, VlanId vlanId)
      Creates a circuit id by given information.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String connectPoint()
      Gets the connect point of circuit id.
      static CircuitId deserialize​(byte[] circuitId)
      Deserialize circuit id from byte string.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      byte[] serialize()
      Combines connect point with vlan id with separator ':' as circuit id.
      VlanId vlanId()
      Gets the vlan id of circuit id.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CircuitId

        public CircuitId​(java.lang.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 java.lang.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
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object