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