Open Kilda Java Documentation
org.openkilda.messaging.model.SwitchId Class Reference
Inheritance diagram for org.openkilda.messaging.model.SwitchId:

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)
 

Detailed Description

Represents a switch id entity.

Definition at line 29 of file SwitchId.java.

Constructor & Destructor Documentation

◆ SwitchId() [1/2]

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.

◆ SwitchId() [2/2]

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.

Member Function Documentation

◆ compareTo()

int org.openkilda.messaging.model.SwitchId.compareTo ( SwitchId  other)

Definition at line 152 of file SwitchId.java.

◆ equals()

boolean org.openkilda.messaging.model.SwitchId.equals ( Object  o)

Definition at line 125 of file SwitchId.java.

◆ hashCode()

int org.openkilda.messaging.model.SwitchId.hashCode ( )

Definition at line 143 of file SwitchId.java.

◆ toLong()

long org.openkilda.messaging.model.SwitchId.toLong ( )

Return the switch id in long.

Returns
the switch id in long.

Definition at line 64 of file SwitchId.java.

◆ toMacAddress()

String org.openkilda.messaging.model.SwitchId.toMacAddress ( )

Return the MAC address of switch.

Returns
the MAC address of switch.

Definition at line 73 of file SwitchId.java.

◆ toOtsdFormat()

String org.openkilda.messaging.model.SwitchId.toOtsdFormat ( )

Return the switch id in otsd format.

Returns
the switch id in otsd format.

Definition at line 91 of file SwitchId.java.

◆ toString()

String org.openkilda.messaging.model.SwitchId.toString ( )

Definition at line 82 of file SwitchId.java.


The documentation for this class was generated from the following file: