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