Class Doubles


  • @ParametersAreNonnullByDefault
    public final class Doubles
    extends Object
    Static utility methods related to double and Double.
    • Method Detail

      • toBytes

        @Nonnull
        public static byte[] toBytes​(Double value)
        Encodes a Double to a byte array.
        Parameters:
        value - the value to encode
        Returns:
        a byte array
        Throws:
        NullPointerException - if the value is null