public class InterfaceId extends Object implements Distributable, Comparable<InterfaceId>, Serializable
Modifier and Type | Field and Description |
---|---|
static InterfaceId |
NONE
A static value used to indicate an unknown/unnecessary interface ID.
|
Modifier | Constructor and Description |
---|---|
protected |
InterfaceId(BigPortNumber port)
Private constructor to create an interface ID based on the given port.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(InterfaceId o) |
boolean |
equals(Object o) |
int |
hashCode() |
BigPortNumber |
port()
Returns the value of this interface ID as a port number.
|
String |
toString() |
static InterfaceId |
valueOf(BigPortNumber port)
Returns the value of the given port as an interface ID.
|
public static final InterfaceId NONE
protected InterfaceId(BigPortNumber port)
port
- the given portpublic static InterfaceId valueOf(BigPortNumber port)
port
- the given portpublic BigPortNumber port()
public int compareTo(InterfaceId o)
compareTo
in interface Comparable<InterfaceId>
Copyright © 2015. All Rights Reserved.