public class DataType32BitSignedInteger extends AbstractContextual implements DataType<IntType>
DataType definition for 32-bit signed integers.| Constructor and Description |
|---|
DataType32BitSignedInteger() |
| Modifier and Type | Method and Description |
|---|---|
double |
asDouble(IntType val)
Converts value to a double.
|
long |
asLong(IntType val)
Converts value to a long.
|
int |
bitCount()
Number of bits of information required to represent data in the type.
|
void |
cast(BigComplex val,
IntType dest)
Sets a given variable of the underlying NumericType to a value that is
closest to a given BigComplex number.
|
void |
cast(IntType val,
BigComplex dest)
Sets a BigComplex representation from a given variable of the underlying
NumericType.
|
IntType |
createVariable()
Returns a variable of the underlying NumericType wrapped by this DataType.
|
String |
description()
A fuller description that elaborates on the capabilities of the type.
|
IntType |
getType()
Provides an example of the underlying NumericType.
|
boolean |
hasDoubleRepresentation()
Returns true if data can be encoded in a double with no precision loss.
|
boolean |
hasLongRepresentation()
Returns true if data can be encoded in a long with no precision loss.
|
boolean |
isBounded()
Returns true if DataType is fully bounded (bounded below and bounded
above).
|
boolean |
isComplex()
Returns true if this DataType is a complex number (imaginary component is
changeable).
|
boolean |
isFloat()
Returns true if this DataType represents a floating point number.
|
boolean |
isSigned()
Returns true if this DataType represents a signed number.
|
String |
longName()
A long name useful for displaying to user.
|
void |
lowerBound(IntType dest)
Sets a given variable to the lower bound of the underlying NumericType.
|
void |
setDouble(IntType val,
double v)
Sets a given value to a given double.
|
void |
setLong(IntType val,
long v)
Sets a given value to a given long.
|
String |
shortName()
A short name useful for displaying to user.
|
void |
upperBound(IntType dest)
Sets a given variable to the upper bound of the underlying NumericType.
|
context, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontext, getContext, setContextpublic IntType getType()
DataTypepublic String shortName()
DataTypepublic String longName()
DataTypepublic String description()
DataTypedescription in interface DataType<IntType>public boolean isComplex()
DataTypepublic boolean isFloat()
DataTypepublic boolean isSigned()
DataTypepublic boolean isBounded()
DataTypepublic void lowerBound(IntType dest)
DataTypelowerBound in interface DataType<IntType>public void upperBound(IntType dest)
DataTypeupperBound in interface DataType<IntType>public int bitCount()
DataTypepublic IntType createVariable()
DataTypecreateVariable in interface DataType<IntType>public void cast(IntType val, BigComplex dest)
DataTypepublic void cast(BigComplex val, IntType dest)
DataTypepublic boolean hasDoubleRepresentation()
DataTypehasDoubleRepresentation in interface DataType<IntType>public boolean hasLongRepresentation()
DataTypehasLongRepresentation in interface DataType<IntType>public double asDouble(IntType val)
DataTypepublic long asLong(IntType val)
DataTypepublic void setDouble(IntType val, double v)
DataTypepublic void setLong(IntType val, long v)
DataTypeCopyright © 2014–2022 ImageJ. All rights reserved.