java.lang.Object
com.ibm.jzos.fields.ExternalDecimalAsLongField
com.ibm.jzos.fields.daa.ZonedEmbeddedLeadingSignedLongField
- All Implemented Interfaces:
Field
,LongAccessor
- Direct Known Subclasses:
ZonedEmbeddedLeadingSignedLongP10Field
,ZonedEmbeddedLeadingSignedLongP11Field
,ZonedEmbeddedLeadingSignedLongP12Field
,ZonedEmbeddedLeadingSignedLongP13Field
,ZonedEmbeddedLeadingSignedLongP14Field
,ZonedEmbeddedLeadingSignedLongP15Field
,ZonedEmbeddedLeadingSignedLongP16Field
,ZonedEmbeddedLeadingSignedLongP17Field
,ZonedEmbeddedLeadingSignedLongP18Field
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getLong
(byte[] buffer) Answer a long value from the given byte array buffer, at the offset of this field.long
getLong
(byte[] buffer, int bufOffset) Answer a long value from the given byte array buffer, at the bufOffset + offset of this field.void
putLong
(long value, byte[] buffer) Put a long value into the given byte array buffer, at the offset of this field.void
putLong
(long value, byte[] buffer, int bufOffset) Put a long value into the given byte array buffer, at the bufOffset + offset of this field.Methods inherited from class com.ibm.jzos.fields.ExternalDecimalAsLongField
equals, getByteLength, getLength, getOffset, getPrecision, isBlankWhenZero, isSigned, isSignExternal, isSignTrailing, setOffset, setSignExternal
-
Constructor Details
-
ZonedEmbeddedLeadingSignedLongField
public ZonedEmbeddedLeadingSignedLongField(int offset, int precision)
-
-
Method Details
-
getLong
public long getLong(byte[] buffer, int bufOffset) Description copied from class:ExternalDecimalAsLongField
Answer a long value from the given byte array buffer, at the bufOffset + offset of this field. TODO need to verify proper runtime optimization of this method.- Specified by:
getLong
in interfaceLongAccessor
- Overrides:
getLong
in classExternalDecimalAsLongField
- Parameters:
buffer
- the byte arraybufOffset
- the additional offset into the byte array- Returns:
- long
-
getLong
public long getLong(byte[] buffer) Description copied from class:ExternalDecimalAsLongField
Answer a long value from the given byte array buffer, at the offset of this field.- Specified by:
getLong
in interfaceLongAccessor
- Overrides:
getLong
in classExternalDecimalAsLongField
- Parameters:
buffer
- the byte array- Returns:
- long
-
putLong
Description copied from class:ExternalDecimalAsLongField
Put a long value into the given byte array buffer, at the bufOffset + offset of this field.- Specified by:
putLong
in interfaceLongAccessor
- Overrides:
putLong
in classExternalDecimalAsLongField
- Parameters:
value
- the long valuebuffer
- the byte arraybufOffset
- the additional offset into the byte array- Throws:
IllegalArgumentException
- if the value is out of range
-
putLong
Description copied from class:ExternalDecimalAsLongField
Put a long value into the given byte array buffer, at the offset of this field.- Specified by:
putLong
in interfaceLongAccessor
- Overrides:
putLong
in classExternalDecimalAsLongField
- Parameters:
value
- the long valuebuffer
- the byte array- Throws:
IllegalArgumentException
- if the value is out of range
-