Class DoubleType

    • Constructor Detail

      • DoubleType

        public DoubleType()
    • Method Detail

      • read

        @Deprecated
        public java.lang.Double read​(io.netty.buffer.ByteBuf buffer)
        Deprecated.
        use readPrimitive(ByteBuf) for manual reading to avoid wrapping
        Description copied from interface: ByteBufReader
        Read a value from a ByteBuf
        Specified by:
        read in interface ByteBufReader<java.lang.Double>
        Parameters:
        buffer - The buffer to read from.
        Returns:
        The type based on the class type.
      • readPrimitive

        public double readPrimitive​(io.netty.buffer.ByteBuf buffer)
      • write

        @Deprecated
        public void write​(io.netty.buffer.ByteBuf buffer,
                          java.lang.Double object)
        Deprecated.
        use writePrimitive(ByteBuf, double) for manual reading to avoid wrapping
        Description copied from interface: ByteBufWriter
        Write an object to a type to a ByteBuf
        Specified by:
        write in interface ByteBufWriter<java.lang.Double>
        Parameters:
        buffer - The buffer to write to
        object - The object to write
      • writePrimitive

        public void writePrimitive​(io.netty.buffer.ByteBuf buffer,
                                   double object)
      • from

        public java.lang.Double from​(java.lang.Object o)
        Description copied from interface: TypeConverter
        Convert from a type to the current type
        Specified by:
        from in interface TypeConverter<java.lang.Double>
        Parameters:
        o - The input object
        Returns:
        The converted type as an object