public class CobolZonedDecimalType<T extends Number> extends CobolDecimalType<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
CobolZonedDecimalType.Builder<T extends Number> |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_TOTAL_DIGITS |
JAVA_DECIMAL_POINT| Modifier and Type | Method and Description |
|---|---|
protected FromHostPrimitiveResult<T> |
fromHostInternal(Class<T> javaClass,
CobolContext cobolContext,
byte[] hostData,
int start)
Convert mainframe data into a java Number.
|
int |
getBytesLen()
Determine the length in bytes of the mainframe representation of this
type.
|
static int |
getBytesLen(int totalDigits,
boolean signSeparate) |
boolean |
isSignLeading() |
boolean |
isSignSeparate() |
boolean |
isValidInternal(Class<T> javaClass,
CobolContext cobolContext,
byte[] hostData,
int start)
Check if a byte array contains a valid type with this instance
characteristics.
|
fromHost, getDigit, getFractionDigits, getMaxInclusive, getMinInclusive, getTotalDigits, isDigit, isSigned, isValid, setNibbles, valueOf, valueOfaccept, fromHost, getCobolName, getDependingOn, getJavaClass, getMaxBytesLen, getMinBytesLen, isCustomVariable, isOdoObject, isValidpublic static final int MAX_TOTAL_DIGITS
public boolean isValidInternal(Class<T> javaClass, CobolContext cobolContext, byte[] hostData, int start)
isValidInternal in class CobolDecimalType<T extends Number>javaClass - java Number class mapped to this COBOL decimalcobolContext - host COBOL configuration parametershostData - the byte array containing mainframe datastart - the start position for the expected type in the byte arrayprotected FromHostPrimitiveResult<T> fromHostInternal(Class<T> javaClass, CobolContext cobolContext, byte[] hostData, int start)
fromHostInternal in class CobolDecimalType<T extends Number>javaClass - java Number class mapped to this COBOL decimalcobolContext - host COBOL configuration parametershostData - the byte array containing mainframe datastart - the start position for the expected type in the byte arraypublic int getBytesLen()
getBytesLen in class CobolPrimitiveType<T extends Number>public static int getBytesLen(int totalDigits,
boolean signSeparate)
public boolean isSignLeading()
public boolean isSignSeparate()
Copyright © 2021 LegSem. All rights reserved.