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