@Immutable public class BundleId extends Object implements OFValueType<BundleId>
| Modifier and Type | Field and Description |
|---|---|
static BundleId |
FULL_MASK |
static BundleId |
NO_MASK |
static BundleId |
NONE |
| Modifier and Type | Method and Description |
|---|---|
BundleId |
applyMask(BundleId mask) |
int |
compareTo(BundleId o) |
boolean |
equals(Object obj) |
int |
getInt() |
int |
getLength() |
int |
hashCode() |
static BundleId |
of(int raw) |
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. |
static BundleId |
read4Bytes(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write4Bytes(io.netty.buffer.ByteBuf c) |
public static final BundleId NONE
public static final BundleId NO_MASK
public static final BundleId FULL_MASK
public static BundleId of(int raw)
public int getInt()
public int getLength()
getLength in interface OFValueType<BundleId>public BundleId applyMask(BundleId mask)
applyMask in interface OFValueType<BundleId>public void write4Bytes(io.netty.buffer.ByteBuf c)
public static BundleId read4Bytes(io.netty.buffer.ByteBuf c)
public int compareTo(BundleId o)
compareTo in interface Comparable<BundleId>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.Copyright © 2021. All rights reserved.