- java.lang.Object
-
- com.ibm.jzos.fields.ExternalDecimalAsBigDecimalField
-
- com.ibm.jzos.fields.daa.ZonedEmbeddedLeadingSignedBigDecimalField
-
- com.ibm.jzos.fields.daa.ZonedEmbeddedLeadingSignedBigDecimalP7Field
-
- All Implemented Interfaces:
BigDecimalAccessor,Field
public class ZonedEmbeddedLeadingSignedBigDecimalP7Field extends ZonedEmbeddedLeadingSignedBigDecimalField
-
-
Constructor Summary
Constructors Constructor Description ZonedEmbeddedLeadingSignedBigDecimalP7Field(int offset, int scale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalgetBigDecimal(byte[] buffer)Answer a BigDecimal from the given byte array buffer, at the offset of this field.java.math.BigDecimalgetBigDecimal(byte[] buffer, int bufOffset)Answer a BigDecimal from the given byte array buffer, at the bufOffset + offset of this field.voidputBigDecimal(java.math.BigDecimal value, byte[] buffer)Put a BigDecimal into the given byte array buffer, at the offset of this field.voidputBigDecimal(java.math.BigDecimal value, byte[] buffer, int bufOffset)Put a BigDecimal into the given byte array buffer, at the bufOffset + offset of this field.-
Methods inherited from class com.ibm.jzos.fields.ExternalDecimalAsBigDecimalField
equals, getByteLength, getOffset, getPrecision, getScale, isBlankWhenZero, isSigned, isSignExternal, isSignTrailing, setOffset
-
-
-
-
Method Detail
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(byte[] buffer, int bufOffset)Description copied from interface:BigDecimalAccessorAnswer a BigDecimal from the given byte array buffer, at the bufOffset + offset of this field.- Specified by:
getBigDecimalin interfaceBigDecimalAccessor- Overrides:
getBigDecimalin classZonedEmbeddedLeadingSignedBigDecimalField- Parameters:
buffer- the byte arraybufOffset- the additional offset into the byte array- Returns:
- BigDecimal
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(byte[] buffer)
Description copied from interface:BigDecimalAccessorAnswer a BigDecimal from the given byte array buffer, at the offset of this field.- Specified by:
getBigDecimalin interfaceBigDecimalAccessor- Overrides:
getBigDecimalin classZonedEmbeddedLeadingSignedBigDecimalField- Parameters:
buffer- the byte array- Returns:
- BigDecimal
-
putBigDecimal
public void putBigDecimal(java.math.BigDecimal value, byte[] buffer, int bufOffset) throws java.lang.IllegalArgumentExceptionDescription copied from interface:BigDecimalAccessorPut a BigDecimal into the given byte array buffer, at the bufOffset + offset of this field.- Specified by:
putBigDecimalin interfaceBigDecimalAccessor- Overrides:
putBigDecimalin classZonedEmbeddedLeadingSignedBigDecimalField- Parameters:
value- the BigDecimal valuebuffer- the byte arraybufOffset- the additional offset into the byte array- Throws:
java.lang.IllegalArgumentException- if the value is out of range
-
putBigDecimal
public void putBigDecimal(java.math.BigDecimal value, byte[] buffer) throws java.lang.IllegalArgumentExceptionDescription copied from interface:BigDecimalAccessorPut a BigDecimal into the given byte array buffer, at the offset of this field.- Specified by:
putBigDecimalin interfaceBigDecimalAccessor- Overrides:
putBigDecimalin classZonedEmbeddedLeadingSignedBigDecimalField- Parameters:
value- the BigDecimal valuebuffer- the byte array- Throws:
java.lang.IllegalArgumentException- if the value is out of range
-
-