public class CircuitId
extends java.lang.Object
Constructor and Description |
---|
CircuitId(java.lang.String connectPoint,
VlanId vlanId)
Creates a circuit id by given information.
|
Modifier and Type | Method and 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.
|
public CircuitId(java.lang.String connectPoint, VlanId vlanId)
connectPoint
- the connect point of circuit idvlanId
- the vlan id of circuit idpublic byte[] serialize()
public static CircuitId deserialize(byte[] circuitId)
circuitId
- the circuit id byte stringpublic java.lang.String connectPoint()
public VlanId vlanId()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object