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