Module ibm.jzos

Interface BigDecimalAccessor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.math.BigDecimal getBigDecimal​(byte[] buffer)
      Answer a BigDecimal from the given byte array buffer, at the offset of this field.
      java.math.BigDecimal getBigDecimal​(byte[] buffer, int bufOffset)
      Answer a BigDecimal from the given byte array buffer, at the bufOffset + offset of this field.
      void putBigDecimal​(java.math.BigDecimal value, byte[] buffer)
      Put a BigDecimal into the given byte array buffer, at the offset of this field.
      void putBigDecimal​(java.math.BigDecimal value, byte[] buffer, int bufOffset)
      Put a BigDecimal into the given byte array buffer, at the bufOffset + offset of this field.
    • Method Detail

      • getBigDecimal

        java.math.BigDecimal getBigDecimal​(byte[] buffer)
        Answer a BigDecimal from the given byte array buffer, at the offset of this field.
        Parameters:
        buffer - the byte array
        Returns:
        BigDecimal
      • getBigDecimal

        java.math.BigDecimal getBigDecimal​(byte[] buffer,
                                           int bufOffset)
        Answer a BigDecimal from the given byte array buffer, at the bufOffset + offset of this field.
        Parameters:
        buffer - the byte array
        bufOffset - the additional offset into the byte array
        Returns:
        BigDecimal
      • putBigDecimal

        void putBigDecimal​(java.math.BigDecimal value,
                           byte[] buffer)
                    throws java.lang.IllegalArgumentException
        Put a BigDecimal into the given byte array buffer, at the offset of this field.
        Parameters:
        value - the BigDecimal value
        buffer - the byte array
        Throws:
        java.lang.IllegalArgumentException - if the value is out of range
      • putBigDecimal

        void putBigDecimal​(java.math.BigDecimal value,
                           byte[] buffer,
                           int bufOffset)
                    throws java.lang.IllegalArgumentException
        Put a BigDecimal into the given byte array buffer, at the bufOffset + offset of this field.
        Parameters:
        value - the BigDecimal value
        buffer - the byte array
        bufOffset - the additional offset into the byte array
        Throws:
        java.lang.IllegalArgumentException - if the value is out of range