public class MacVlanPair
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
mac |
private IOFSwitch |
sw |
private java.lang.Short |
vlan |
Constructor and Description |
---|
MacVlanPair(java.lang.Long mac,
java.lang.Short vlan,
IOFSwitch sw)
Constructor to create the MacVlanPair object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
check if this object has the same MAC, VLAN, and switch.
|
long |
getMac()
Get the MAC address
|
IOFSwitch |
getSwitch()
Get the switch associated with the MAC address
|
short |
getVlan()
Get the VLAN value
|
int |
hashCode()
Calculate the hashCode for this object.
|
private final java.lang.Long mac
private final java.lang.Short vlan
private final IOFSwitch sw
public MacVlanPair(java.lang.Long mac, java.lang.Short vlan, IOFSwitch sw)
mac
- MAC addressvlan
- VLAN valuesw
- switch that reported the MAC and VLAN valuepublic long getMac()
public short getVlan()
public IOFSwitch getSwitch()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object