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)
Dump the state of this object into a
PrimitiveSink (e.g., a Hasher) for the purpose
of computing a strong hash. |
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 MacAddresspublic long getLong()
public U64 getUnsignedLong()
public byte[] getBytes()
public void putTo(com.google.common.hash.PrimitiveSink sink)
PrimitiveSinkablePrimitiveSink (e.g., a Hasher) for the purpose
of computing a strong hash.
Equality contract:
Equal objects must dump the equal data into the sink, non-equal objects must dump different
data into the sink. Please see the interface documentation of PrimitiveSink for more
details and caveats/traps.putTo in interface PrimitiveSinkablesink - the sink to dump the object state into.public int compareTo(DatapathId o)
compareTo in interface Comparable<DatapathId>Copyright © 2020. All rights reserved.