public class CircuitId extends Object
Constructor and Description |
---|
CircuitId(String connectPoint,
VlanId vlanId)
Creates a circuit id by given information.
|
Modifier and Type | Method and Description |
---|---|
String |
connectPoint()
Gets the connect point of circuit id.
|
static CircuitId |
deserialize(byte[] circuitId)
Deserialize circuit id from byte string.
|
boolean |
equals(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.
|
public byte[] serialize()
public static CircuitId deserialize(byte[] circuitId)
circuitId
- the circuit id byte stringpublic String connectPoint()
public VlanId vlanId()