@ParametersAreNonnullByDefault public final class Shorts extends Object
short and Short.| Modifier and Type | Method and Description |
|---|---|
static byte[] |
toBytes(short value)
Encodes a
short to a byte array. |
static byte[] |
toBytes(Short value)
Encodes a
Short to a byte array. |
@Nonnull public static byte[] toBytes(short value)
short to a byte array.value - the value to encodebyte array@Nonnull public static byte[] toBytes(Short value)
Short to a byte array.value - the value to encodebyte arrayNullPointerException - if the value is nullCopyright © 2017–2019 Atlanmod. All rights reserved.