public class Status extends Object
Status is a bit field used to indicate the message state. Status is a 1-byte unsigned char. The following Status bit flags are defined.
Status.StatusBit| Modifier and Type | Class and Description |
|---|---|
static class |
Status.StatusBit
Packet header status bits as defined in ch 2.2.3.1.2 Status of the TDS v20180912 spec.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
and(Status.StatusBit bit)
Create a
Status from the current state and add the Status.StatusBit. |
static Status |
empty()
Return an empty
Status. |
boolean |
equals(Object o) |
static Status |
fromBitmask(byte bitmask)
|
byte |
getValue() |
int |
hashCode() |
boolean |
is(Status.StatusBit bit)
Check if the header status has set the
Status.StatusBit. |
Status |
not(Status.StatusBit bit)
Create a
Status from the current state and remove the Status.StatusBit. |
static Status |
of(Status.StatusBit bit)
Create a
Status from the given Status.StatusBit. |
static Status |
of(Status.StatusBit bit,
Status.StatusBit... other)
Create a
Status from the given Status.StatusBits. |
String |
toString() |
public static Status fromBitmask(byte bitmask)
bitmask - status bitmask.Status for bitmask.public static Status of(Status.StatusBit bit)
Status from the given Status.StatusBit.bit - the status bit.Status from the given Status.StatusBit.public static Status of(Status.StatusBit bit, Status.StatusBit... other)
Status from the given Status.StatusBits.bit - the status bit.other - the status bits.Status from the given Status.StatusBit.public Status and(Status.StatusBit bit)
Status from the current state and add the Status.StatusBit.bit - the status bit.Status from the given Status.StatusBit.public Status not(Status.StatusBit bit)
Status from the current state and remove the Status.StatusBit.bit - the status bit.Status from the given Status.StatusBit.public boolean is(Status.StatusBit bit)
Status.StatusBit.bit - the status bit.true of the bit is set; false otherwise.public byte getValue()
Copyright © 2023. All rights reserved.