public class CobolFloatType<T extends Number> extends CobolPrimitiveType<T>
This is the bit layout for this type:
33222222222211111111110000000000
10987654321098765432109876543210
--------------------------------
01000011010011010010000000000000
- sign
------- excess
------------------------ mantissa
| Modifier and Type | Class and Description |
|---|---|
static class |
CobolFloatType.Builder<T extends Number> |
| Modifier and Type | Method and Description |
|---|---|
FromHostPrimitiveResult<T> |
fromHost(Class<T> javaClass,
CobolContext cobolContext,
byte[] hostData,
int start)
Convert mainframe data into a Java object.
|
int |
getBytesLen()
Determine the length in bytes of the mainframe representation of this
type.
|
boolean |
isValid(Class<T> javaClass,
CobolContext cobolContext,
byte[] hostData,
int start)
Check if a byte array contains valid mainframe data for this type
characteristics.
|
static <D extends Number> |
valueOf(Class<D> clazz,
Float value) |
accept, fromHost, getCobolName, getDependingOn, getJavaClass, getMaxBytesLen, getMinBytesLen, isCustomVariable, isOdoObject, isValidpublic FromHostPrimitiveResult<T> fromHost(Class<T> javaClass, CobolContext cobolContext, byte[] hostData, int start)
CobolPrimitiveTypefromHost in class CobolPrimitiveType<T extends Number>javaClass - target java typecobolContext - host COBOL configuration parametershostData - the byte array containing mainframe datastart - the start position for the expected type in the byte arraypublic boolean isValid(Class<T> javaClass, CobolContext cobolContext, byte[] hostData, int start)
CobolPrimitiveTypeisValid in class CobolPrimitiveType<T extends Number>javaClass - target java typecobolContext - host COBOL configuration parametershostData - the byte array containing mainframe datastart - the start position for the expected type in the byte arraypublic int getBytesLen()
CobolPrimitiveTypegetBytesLen in class CobolPrimitiveType<T extends Number>Copyright © 2021 LegSem. All rights reserved.