public class DataType16BitUnsignedInteger extends AbstractContextual implements DataType<UnsignedShortType>
DataType
definition for 16-bit unsigned integers.Constructor and Description |
---|
DataType16BitUnsignedInteger() |
Modifier and Type | Method and Description |
---|---|
double |
asDouble(UnsignedShortType val)
Converts value to a double.
|
long |
asLong(UnsignedShortType val)
Converts value to a long.
|
int |
bitCount()
Number of bits of information required to represent data in the type.
|
void |
cast(BigComplex val,
UnsignedShortType dest)
Sets a given variable of the underlying NumericType to a value that is
closest to a given BigComplex number.
|
void |
cast(UnsignedShortType val,
BigComplex dest)
Sets a BigComplex representation from a given variable of the underlying
NumericType.
|
UnsignedShortType |
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.
|
UnsignedShortType |
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(UnsignedShortType dest)
Sets a given variable to the lower bound of the underlying NumericType.
|
void |
setDouble(UnsignedShortType val,
double v)
Sets a given value to a given double.
|
void |
setLong(UnsignedShortType val,
long v)
Sets a given value to a given long.
|
String |
shortName()
A short name useful for displaying to user.
|
void |
upperBound(UnsignedShortType dest)
Sets a given variable to the upper bound of the underlying NumericType.
|
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
context, getContext, setContext
public UnsignedShortType getType()
DataType
getType
in interface DataType<UnsignedShortType>
public String shortName()
DataType
shortName
in interface DataType<UnsignedShortType>
public String longName()
DataType
longName
in interface DataType<UnsignedShortType>
public String description()
DataType
description
in interface DataType<UnsignedShortType>
public boolean isComplex()
DataType
isComplex
in interface DataType<UnsignedShortType>
public boolean isFloat()
DataType
isFloat
in interface DataType<UnsignedShortType>
public boolean isSigned()
DataType
isSigned
in interface DataType<UnsignedShortType>
public boolean isBounded()
DataType
isBounded
in interface DataType<UnsignedShortType>
public void lowerBound(UnsignedShortType dest)
DataType
lowerBound
in interface DataType<UnsignedShortType>
public void upperBound(UnsignedShortType dest)
DataType
upperBound
in interface DataType<UnsignedShortType>
public int bitCount()
DataType
bitCount
in interface DataType<UnsignedShortType>
public UnsignedShortType createVariable()
DataType
createVariable
in interface DataType<UnsignedShortType>
public void cast(UnsignedShortType val, BigComplex dest)
DataType
cast
in interface DataType<UnsignedShortType>
public void cast(BigComplex val, UnsignedShortType dest)
DataType
cast
in interface DataType<UnsignedShortType>
public boolean hasDoubleRepresentation()
DataType
hasDoubleRepresentation
in interface DataType<UnsignedShortType>
public boolean hasLongRepresentation()
DataType
hasLongRepresentation
in interface DataType<UnsignedShortType>
public double asDouble(UnsignedShortType val)
DataType
asDouble
in interface DataType<UnsignedShortType>
public long asLong(UnsignedShortType val)
DataType
asLong
in interface DataType<UnsignedShortType>
public void setDouble(UnsignedShortType val, double v)
DataType
setDouble
in interface DataType<UnsignedShortType>
public void setLong(UnsignedShortType val, long v)
DataType
setLong
in interface DataType<UnsignedShortType>
Copyright © 2014–2022 ImageJ. All rights reserved.