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