Class ZonedExternalLeadingSignedIntField
java.lang.Object
com.ibm.jzos.fields.ExternalDecimalAsIntField
com.ibm.jzos.fields.daa.ZonedExternalLeadingSignedIntField
- All Implemented Interfaces:
Field, IntAccessor
- Direct Known Subclasses:
ZonedExternalLeadingSignedIntP1Field, ZonedExternalLeadingSignedIntP2Field, ZonedExternalLeadingSignedIntP3Field, ZonedExternalLeadingSignedIntP4Field, ZonedExternalLeadingSignedIntP5Field, ZonedExternalLeadingSignedIntP6Field, ZonedExternalLeadingSignedIntP7Field, ZonedExternalLeadingSignedIntP8Field, ZonedExternalLeadingSignedIntP9Field
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetInt(byte[] buffer) Answer an int value from the given byte array buffer, at the offset of this field.intgetInt(byte[] buffer, int bufOffset) Answer an int value from the given byte array buffer, at the bufOffset + offset of this field.voidputInt(int value, byte[] buffer) Put an int value into the given byte array buffer, at the offset of this field.voidputInt(int value, byte[] buffer, int bufOffset) Put an int value into the given byte array buffer, at the bufOffset + offset of this field.Methods inherited from class ExternalDecimalAsIntField
equals, getByteLength, getLength, getOffset, getPrecision, isBlankWhenZero, isSigned, isSignExternal, isSignTrailing, setOffset
-
Constructor Details
-
ZonedExternalLeadingSignedIntField
public ZonedExternalLeadingSignedIntField(int offset, int precision)
-
-
Method Details
-
getInt
public int getInt(byte[] buffer, int bufOffset) Description copied from class:ExternalDecimalAsIntFieldAnswer an int value from the given byte array buffer, at the bufOffset + offset of this field.- Specified by:
getIntin interfaceIntAccessor- Overrides:
getIntin classExternalDecimalAsIntField- Parameters:
buffer- the byte arraybufOffset- the additional offset into the byte array- Returns:
- int
-
getInt
public int getInt(byte[] buffer) Description copied from class:ExternalDecimalAsIntFieldAnswer an int value from the given byte array buffer, at the offset of this field.- Specified by:
getIntin interfaceIntAccessor- Overrides:
getIntin classExternalDecimalAsIntField- Parameters:
buffer- the byte array- Returns:
- int
-
putInt
Description copied from class:ExternalDecimalAsIntFieldPut an int value into the given byte array buffer, at the bufOffset + offset of this field.- Specified by:
putIntin interfaceIntAccessor- Overrides:
putIntin classExternalDecimalAsIntField- Parameters:
value- the int valuebuffer- the byte arraybufOffset- the additional offset into the byte array- Throws:
IllegalArgumentException- if the value is out of range
-
putInt
Description copied from class:ExternalDecimalAsIntFieldPut an int value into the given byte array buffer, at the offset of this field.- Specified by:
putIntin interfaceIntAccessor- Overrides:
putIntin classExternalDecimalAsIntField- Parameters:
value- the signed int valuebuffer- the byte array- Throws:
IllegalArgumentException- if the value is out of range
-