public class TunnelIndex extends Object implements Distributable, Comparable<TunnelIndex>, Serializable
Modifier and Type | Field and Description |
---|---|
static TunnelIndex |
NONE
A static value used to indicate an unknown/unnecessary tunnel index.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TunnelIndex o) |
boolean |
equals(Object o) |
int |
hashCode() |
BigPortNumber |
index()
Returns the value of this Tunnel Id as a tunnel index .
|
String |
toString() |
static TunnelIndex |
valueOf(BigPortNumber tunnelIndex)
Returns the value of the given index as TunnelIndex.
|
public static final TunnelIndex NONE
public static TunnelIndex valueOf(BigPortNumber tunnelIndex)
tunnelIndex
- the given indexpublic BigPortNumber index()
public int compareTo(TunnelIndex o)
compareTo
in interface Comparable<TunnelIndex>
Copyright © 2015. All Rights Reserved.