public abstract class UnsignedOptions
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
UnsignedOptions.Behavior
Defines the exact behavior for unsigned types.
|
static class |
UnsignedOptions.Builder
Builder for
UnsignedOptions . |
Constructor and Description |
---|
UnsignedOptions() |
Modifier and Type | Method and Description |
---|---|
static UnsignedOptions.Builder |
builder() |
abstract UnsignedOptions.Builder |
toBuilder() |
abstract UnsignedOptions.Behavior |
uint16Behavior() |
abstract UnsignedOptions.Behavior |
uint32Behavior() |
abstract UnsignedOptions.Behavior |
uint64Behavior() |
abstract UnsignedOptions.Behavior |
uint8Behavior() |
static UnsignedOptions |
usingHigherBitSize(UnsignedOptions.Behavior uint64Behavior)
Returns options for using a higher bit count for unsigned types.
|
static UnsignedOptions |
usingSameBitSize()
Returns options for using the same bit size for all unsigned types.
|
public abstract UnsignedOptions.Behavior uint8Behavior()
public abstract UnsignedOptions.Behavior uint16Behavior()
public abstract UnsignedOptions.Behavior uint32Behavior()
public abstract UnsignedOptions.Behavior uint64Behavior()
public static UnsignedOptions usingSameBitSize()
This means that if an unsigned value from SBE comes in with a value outside the signed range, then the negative equivalent (in terms of bits) will be used.
public static UnsignedOptions usingHigherBitSize(UnsignedOptions.Behavior uint64Behavior)
This means that if an unsigned value is encountered, it will always use the higher bit count, even if that higher bit count is unnecessary. However, this means that if it is necessary, then the proper value will be returned rather than the negative equivalent (in terms of bits).
The uint64Behavior
controls the behavior of 64-bit values, since no properly
higher-bit-numeric type exists. This cannot be UnsignedOptions.Behavior.HIGHER_BIT_SIGNED
or else an
exception will be thrown.
public static UnsignedOptions.Builder builder()
public abstract UnsignedOptions.Builder toBuilder()