@Beta
public final class PiPacketOperation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PiPacketOperation.Builder
Builder of packet operations.
|
Modifier and Type | Method and Description |
---|---|
static PiPacketOperation.Builder |
builder()
Returns a new builder of packet operations.
|
ImmutableByteSequence |
data()
Returns the data of this packet.
|
DeviceId |
deviceId()
Returns the device ID of this packet operation.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.Collection<PiControlMetadata> |
metadatas()
Returns all metadatas of this packet.
|
java.lang.String |
toString() |
PiPacketOperationType |
type()
Return the type of this packet.
|
public DeviceId deviceId()
public PiPacketOperationType type()
public ImmutableByteSequence data()
public java.util.Collection<PiControlMetadata> metadatas()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static PiPacketOperation.Builder builder()