public class DefaultDataTypeService extends AbstractSingletonService<DataType<?>> implements DataTypeService
DataTypeService.| Constructor and Description |
|---|
DefaultDataTypeService() |
| Modifier and Type | Method and Description |
|---|---|
<U extends NumericType<U>,V extends NumericType<V>> |
cast(DataType<U> inputType,
U input,
DataType<V> outputType,
V output)
Fills an output with a cast from an input given information about their
DataTypes.
|
<U extends NumericType<U>,V extends NumericType<V>> |
cast(DataType<U> inputType,
U input,
DataType<V> outputType,
V output,
BigComplex tmp)
Fills an output with a cast from an input given information about their
DataTypes.
|
List<DataType<?>> |
getInstances()
Returns a list of all DataTypes known to system.
|
Class<DataType<?>> |
getPluginType() |
DataType<?> |
getTypeByAttributes(int bitCount,
boolean bounded,
boolean complex,
boolean floating,
boolean signed)
Returns the DataType whose internal type class matches the given
specifications exactly.
|
DataType<?> |
getTypeByClass(Class<?> typeClass)
Returns the DataType whose internal type class matches the given typeClass.
|
DataType<?> |
getTypeByName(String typeName)
Returns the DataType whose internal name matches the given typeName.
|
void |
initialize() |
getInstance, objectService, onEvent, onEventpluginServicegetContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreate, filterInstances, getInstance, objectServicegetPlugins, getPluginService, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic void initialize()
initialize in interface Initializableinitialize in interface SingletonService<DataType<?>>initialize in interface Servicepublic List<DataType<?>> getInstances()
DataTypeServicegetInstances in interface DataTypeServicegetInstances in interface SingletonService<DataType<?>>getInstances in class AbstractSingletonService<DataType<?>>public Class<DataType<?>> getPluginType()
getPluginType in interface PTService<DataType<?>>public DataType<?> getTypeByName(String typeName)
DataTypeServicegetTypeByName in interface DataTypeServicepublic DataType<?> getTypeByClass(Class<?> typeClass)
DataTypeServicegetTypeByClass in interface DataTypeServicepublic DataType<?> getTypeByAttributes(int bitCount, boolean bounded, boolean complex, boolean floating, boolean signed)
DataTypeServicegetTypeByAttributes in interface DataTypeServicepublic <U extends NumericType<U>,V extends NumericType<V>> void cast(DataType<U> inputType, U input, DataType<V> outputType, V output)
DataTypeServicecast in interface DataTypeServiceinputType - The DataType of the input.input - The input variable to cast from.outputType - The DataType of the outputoutput - The output variable to cast into.public <U extends NumericType<U>,V extends NumericType<V>> void cast(DataType<U> inputType, U input, DataType<V> outputType, V output, BigComplex tmp)
DataTypeServicecast in interface DataTypeServiceinputType - The DataType of the input.input - The input variable to cast from.outputType - The DataType of the outputoutput - The output variable to cast into.tmp - The working variable the method may use internally.Copyright © 2014–2022 ImageJ. All rights reserved.