Package com.softwaremining.containers
Class AbstractMutableNumeric
java.lang.Object
com.softwaremining.containers.AbstractMutableField
com.softwaremining.containers.AbstractMutableNumeric
- All Implemented Interfaces:
AbstractDataObject,ISMDataType,ISMNumeric,ISMObject
- Direct Known Subclasses:
MBigDecimal,MDouble,MInteger,MLong
-
Field Summary
Fields inherited from class com.softwaremining.containers.AbstractMutableField
fieldSize, format -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisGreaterOrEqualTo(double value) final booleanisGreaterOrEqualTo(int value) final booleanisGreaterOrEqualTo(long value) final booleanisGreaterOrEqualTo(ISMNumeric value) final booleanisGreaterOrEqualTo(BigDecimal value) final booleanisGreaterThan(double value) final booleanisGreaterThan(int value) final booleanisGreaterThan(long value) final booleanisGreaterThan(ISMNumeric value) final booleanisGreaterThan(BigDecimal value) final booleanisLessOrEqualTo(double value) final booleanisLessOrEqualTo(int value) final booleanisLessOrEqualTo(long value) final booleanisLessOrEqualTo(ISMNumeric value) final booleanisLessOrEqualTo(BigDecimal value) final booleanisLessThan(double value) final booleanisLessThan(long value) final booleanisLessThan(ISMNumeric value) final booleanisLessThan(BigDecimal value) intlengthOf()final Stringfinal voidsetRound(double doubleVal) Support for COBOL's ROUNDED statement.final voidsetRound(BigDecimal bigDecimal) Support for COBOL's ROUNDED statement.final StringMethods inherited from class com.softwaremining.containers.AbstractMutableField
assignBigDecimal, assignDefaultValue, assignDouble, assignExcludeFromSQLTable, assignLong, assignMasterSQLColumnsForArrays, assignObject, assignOverrideSQLTableName, assignString, assignValue, bytesSize, fill, getFormat, getInitializationValue, getPicture, isExcludedFromSQLTable, isFiller, isGreaterOrEqualTo, isGreaterThan, isLessOrEqualTo, isLessThan, retrieveMasterSQLColumnsForArrays, retrieveName, retrieveSQLObject, retrieveSQLObject, retrieveSQLTableNameOverride, retrieveStorageCellSize, retrieveSubField, retrieveWrapper, setFormat, setName, setOwner, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.softwaremining.wrappers.AbstractDataObject
assignValueMethods inherited from interface com.softwaremining.wrappers.ISMNumeric
assignValue, doubleValue, getFormat, getNumber, isGreaterOrEqualTo, isGreaterThan, isLessOrEqualTo, isLessThan, retrieveAsDoubleMethods inherited from interface com.softwaremining.wrappers.ISMObject
assignExcludeFromSQLTable, assignMasterSQLColumnsForArrays, assignObject, assignString, assignStringFormatted, assignSubstring, assignValue, bytesSize, fill, initialize, isExcludedFromSQLTable, isFiller, retrieveAsStringFormatted, retrieveMasterSQLColumnsForArrays, retrieveName, retrieveObject, retrieveSQLObject, retrieveSQLObject, retrieveStorageCellSize, retrieveSubField, retrieveWrapper
-
Constructor Details
-
AbstractMutableNumeric
public AbstractMutableNumeric()
-
-
Method Details
-
retrieveAsString
- Specified by:
retrieveAsStringin interfaceAbstractDataObject- Specified by:
retrieveAsStringin interfaceISMDataType- Specified by:
retrieveAsStringin interfaceISMObject
-
stringValue
- Specified by:
stringValuein interfaceISMDataType
-
getStorageString
- Specified by:
getStorageStringin interfaceISMNumeric
-
retrieveAsBigDecimal
-
bigDecimalValue
-
setRound
Support for COBOL's ROUNDED statement. E.g. Subtract A from B ROUNDED this version uses the bigDecimal.doubleValue() ... so digits may get lost- Parameters:
bigDecimal-
-
setRound
public final void setRound(double doubleVal) Support for COBOL's ROUNDED statement. E.g. Subtract A from B ROUNDED- Specified by:
setRoundin interfaceISMNumeric- Parameters:
doubleVal-
-
lengthOf
public int lengthOf()- Specified by:
lengthOfin interfaceISMNumeric
-
isGreaterThan
public final boolean isGreaterThan(double value) - Specified by:
isGreaterThanin interfaceISMNumeric
-
isGreaterThan
public final boolean isGreaterThan(int value) - Specified by:
isGreaterThanin interfaceISMNumeric
-
isGreaterThan
public final boolean isGreaterThan(long value) - Specified by:
isGreaterThanin interfaceISMNumeric
-
isGreaterThan
- Specified by:
isGreaterThanin interfaceISMNumeric
-
isGreaterThan
- Specified by:
isGreaterThanin interfaceISMNumeric
-
isGreaterOrEqualTo
public final boolean isGreaterOrEqualTo(int value) - Specified by:
isGreaterOrEqualToin interfaceISMNumeric
-
isGreaterOrEqualTo
public final boolean isGreaterOrEqualTo(double value) - Specified by:
isGreaterOrEqualToin interfaceISMNumeric
-
isGreaterOrEqualTo
public final boolean isGreaterOrEqualTo(long value) - Specified by:
isGreaterOrEqualToin interfaceISMNumeric
-
isGreaterOrEqualTo
- Specified by:
isGreaterOrEqualToin interfaceISMNumeric
-
isGreaterOrEqualTo
- Specified by:
isGreaterOrEqualToin interfaceISMNumeric
-
isLessThan
public final boolean isLessThan(double value) - Specified by:
isLessThanin interfaceISMNumeric
-
isLessThan
public final boolean isLessThan(long value) - Specified by:
isLessThanin interfaceISMNumeric
-
isLessThan
- Specified by:
isLessThanin interfaceISMNumeric
-
isLessThan
- Specified by:
isLessThanin interfaceISMNumeric
-
isLessOrEqualTo
public final boolean isLessOrEqualTo(int value) - Specified by:
isLessOrEqualToin interfaceISMNumeric
-
isLessOrEqualTo
public final boolean isLessOrEqualTo(double value) - Specified by:
isLessOrEqualToin interfaceISMNumeric
-
isLessOrEqualTo
public final boolean isLessOrEqualTo(long value) - Specified by:
isLessOrEqualToin interfaceISMNumeric
-
isLessOrEqualTo
- Specified by:
isLessOrEqualToin interfaceISMNumeric
-
isLessOrEqualTo
- Specified by:
isLessOrEqualToin interfaceISMNumeric
-