Package nom.tam.util.type
Class PrimitiveTypeHandler
java.lang.Object
nom.tam.util.type.PrimitiveTypeHandler
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ElementType<Buffer>
nearestValueOf
(int bitPix) Deprecated.UseElementType.forNearestBitpix(int)
instead.static ElementType<Buffer>
valueOf
(char type) Deprecated.UseElementType.forDataID(char)
instead.static ElementType<Buffer>
valueOf
(int bitPix) Deprecated.UseElementType.forBitpix(int)
instead.static <B extends Buffer>
ElementType<B>Deprecated.UseElementType.forClass(Class)
instead.
-
Method Details
-
valueOf
Deprecated.UseElementType.forDataID(char)
instead.- Parameters:
type
- the Java array type character ID. For example 'J' for long integers.- Returns:
- the corresponding FITS element type.
-
valueOf
Deprecated.UseElementType.forClass(Class)
instead.- Type Parameters:
B
- the generic tpye of buffer used by the returned element type.- Parameters:
clazz
- the Java class of an element or an array thereof- Returns:
- the corresponding FITS element type.
-
valueOf
Deprecated.UseElementType.forBitpix(int)
instead.- Parameters:
bitPix
- the FITS BITPIX value- Returns:
- the corresponding FITS element type.
-
nearestValueOf
Deprecated.UseElementType.forNearestBitpix(int)
instead.- Parameters:
bitPix
- a FITS BITPIX value- Returns:
- the nearest corresponding FITS element type.
-
ElementType
instead.