public class DatapathId extends Object implements PrimitiveSinkable, Comparable<DatapathId>
Modifier and Type | Field and Description |
---|---|
static DatapathId |
NONE |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DatapathId o) |
boolean |
equals(Object obj) |
byte[] |
getBytes() |
long |
getLong() |
U64 |
getUnsignedLong() |
int |
hashCode() |
static DatapathId |
of(byte[] bytes) |
static DatapathId |
of(long rawValue) |
static DatapathId |
of(MacAddress mac)
Creates a
DatapathId from a MacAddress . |
static DatapathId |
of(String s) |
void |
putTo(com.google.common.hash.PrimitiveSink sink) |
String |
toString() |
public static final DatapathId NONE
public static DatapathId of(long rawValue)
public static DatapathId of(String s)
public static DatapathId of(byte[] bytes)
public static DatapathId of(@Nonnull MacAddress mac)
DatapathId
from a MacAddress
.mac
- the MacAddress
to create the DatapathId
fromDatapathId
derived from the supplied MacAddress
public long getLong()
public U64 getUnsignedLong()
public byte[] getBytes()
public void putTo(com.google.common.hash.PrimitiveSink sink)
putTo
in interface PrimitiveSinkable
public int compareTo(DatapathId o)
compareTo
in interface Comparable<DatapathId>
Copyright © 2015. All rights reserved.