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, onEvent
pluginService
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
create, filterInstances, getInstance, objectService
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public void initialize()
initialize
in interface Initializable
initialize
in interface SingletonService<DataType<?>>
initialize
in interface Service
public List<DataType<?>> getInstances()
DataTypeService
getInstances
in interface DataTypeService
getInstances
in interface SingletonService<DataType<?>>
getInstances
in class AbstractSingletonService<DataType<?>>
public Class<DataType<?>> getPluginType()
getPluginType
in interface PTService<DataType<?>>
public DataType<?> getTypeByName(String typeName)
DataTypeService
getTypeByName
in interface DataTypeService
public DataType<?> getTypeByClass(Class<?> typeClass)
DataTypeService
getTypeByClass
in interface DataTypeService
public DataType<?> getTypeByAttributes(int bitCount, boolean bounded, boolean complex, boolean floating, boolean signed)
DataTypeService
getTypeByAttributes
in interface DataTypeService
public <U extends NumericType<U>,V extends NumericType<V>> void cast(DataType<U> inputType, U input, DataType<V> outputType, V output)
DataTypeService
cast
in interface DataTypeService
inputType
- 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)
DataTypeService
cast
in interface DataTypeService
inputType
- 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.