![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
SwitchId (String switchId) | |
SwitchId (long switchId) | |
long | toLong () |
String | toMacAddress () |
String | toString () |
String | toOtsdFormat () |
boolean | equals (Object o) |
int | hashCode () |
int | compareTo (SwitchId other) |
Represents a switch id entity.
Definition at line 29 of file SwitchId.java.
org.openkilda.messaging.model.SwitchId.SwitchId | ( | String | switchId | ) |
Construct an instance based on the colon separated representation of a switch id.
Definition at line 41 of file SwitchId.java.
org.openkilda.messaging.model.SwitchId.SwitchId | ( | long | switchId | ) |
Construct an instance based on the long value representation of a switch id.
Definition at line 55 of file SwitchId.java.
int org.openkilda.messaging.model.SwitchId.compareTo | ( | SwitchId | other | ) |
Definition at line 152 of file SwitchId.java.
boolean org.openkilda.messaging.model.SwitchId.equals | ( | Object | o | ) |
Definition at line 125 of file SwitchId.java.
int org.openkilda.messaging.model.SwitchId.hashCode | ( | ) |
Definition at line 143 of file SwitchId.java.
long org.openkilda.messaging.model.SwitchId.toLong | ( | ) |
Return the switch id in long.
Definition at line 64 of file SwitchId.java.
String org.openkilda.messaging.model.SwitchId.toMacAddress | ( | ) |
Return the MAC address of switch.
Definition at line 73 of file SwitchId.java.
String org.openkilda.messaging.model.SwitchId.toOtsdFormat | ( | ) |
Return the switch id in otsd format.
Definition at line 91 of file SwitchId.java.
String org.openkilda.messaging.model.SwitchId.toString | ( | ) |
Definition at line 82 of file SwitchId.java.