java.lang.Object
com.ibm.jzos.fields.ExternalDecimalAsBigDecimalField
com.ibm.jzos.fields.daa.ZonedExternalLeadingSignedBigDecimalField
- All Implemented Interfaces:
BigDecimalAccessor,Field
- Direct Known Subclasses:
ZonedExternalLeadingSignedBigDecimalP10Field,ZonedExternalLeadingSignedBigDecimalP11Field,ZonedExternalLeadingSignedBigDecimalP12Field,ZonedExternalLeadingSignedBigDecimalP13Field,ZonedExternalLeadingSignedBigDecimalP14Field,ZonedExternalLeadingSignedBigDecimalP15Field,ZonedExternalLeadingSignedBigDecimalP16Field,ZonedExternalLeadingSignedBigDecimalP17Field,ZonedExternalLeadingSignedBigDecimalP18Field,ZonedExternalLeadingSignedBigDecimalP1Field,ZonedExternalLeadingSignedBigDecimalP2Field,ZonedExternalLeadingSignedBigDecimalP3Field,ZonedExternalLeadingSignedBigDecimalP4Field,ZonedExternalLeadingSignedBigDecimalP5Field,ZonedExternalLeadingSignedBigDecimalP6Field,ZonedExternalLeadingSignedBigDecimalP7Field,ZonedExternalLeadingSignedBigDecimalP8Field,ZonedExternalLeadingSignedBigDecimalP9Field
-
Constructor Summary
ConstructorsConstructorDescriptionZonedExternalLeadingSignedBigDecimalField(int offset, int precision, int scale) -
Method Summary
Modifier and TypeMethodDescriptiongetBigDecimal(byte[] buffer) Answer a BigDecimal from the given byte array buffer, at the offset of this field.getBigDecimal(byte[] buffer, int bufOffset) Answer a BigDecimal from the given byte array buffer, at the bufOffset + offset of this field.voidputBigDecimal(BigDecimal value, byte[] buffer) Put a BigDecimal into the given byte array buffer, at the offset of this field.voidputBigDecimal(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
-
Constructor Details
-
ZonedExternalLeadingSignedBigDecimalField
public ZonedExternalLeadingSignedBigDecimalField(int offset, int precision, int scale)
-
-
Method Details
-
getBigDecimal
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 classExternalDecimalAsBigDecimalField- Parameters:
buffer- the byte arraybufOffset- the additional offset into the byte array- Returns:
- BigDecimal
-
getBigDecimal
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 classExternalDecimalAsBigDecimalField- Parameters:
buffer- the byte array- Returns:
- BigDecimal
-
putBigDecimal
public void putBigDecimal(BigDecimal value, byte[] buffer, int bufOffset) throws IllegalArgumentException Description 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 classExternalDecimalAsBigDecimalField- Parameters:
value- the BigDecimal valuebuffer- the byte arraybufOffset- the additional offset into the byte array- Throws:
IllegalArgumentException- if the value is out of range
-
putBigDecimal
Description copied from interface:BigDecimalAccessorPut a BigDecimal into the given byte array buffer, at the offset of this field.- Specified by:
putBigDecimalin interfaceBigDecimalAccessor- Overrides:
putBigDecimalin classExternalDecimalAsBigDecimalField- Parameters:
value- the BigDecimal valuebuffer- the byte array- Throws:
IllegalArgumentException- if the value is out of range
-