public class SegmentId extends Object implements Comparable<SegmentId>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SegmentId.Type
Network segment types.
|
Modifier and Type | Field and Description |
---|---|
static SegmentId |
UNKNOWN
A segment ID which represents an unknown segment
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SegmentId other) |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
SegmentId.Type |
type()
Returns the type of network segment this identifies.
|
int |
value()
Returns the identifier as an integer value.
|
static SegmentId |
valueOf(VlanId vlanId)
Returns the given VLAN ID represented as a segment ID.
|
public static final SegmentId UNKNOWN
public static SegmentId valueOf(VlanId vlanId)
vlanId
- VLAN IDpublic int value()
public SegmentId.Type type()
public int compareTo(SegmentId other)
compareTo
in interface Comparable<SegmentId>
Copyright © 2015. All Rights Reserved.