js.dev.cam
Enum BITPIX
java.lang.Object
java.lang.Enum<BITPIX>
js.dev.cam.BITPIX
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BITPIX>
public enum BITPIX
- extends java.lang.Enum<BITPIX>
The BITPIX (FITS) enumerations.
- Author:
- soldan
Method Summary |
int |
getBitpix()
|
static BITPIX |
getBitpix(int value)
|
static BITPIX |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BITPIX[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UNKNOWN
public static final BITPIX UNKNOWN
BYTE
public static final BITPIX BYTE
SHORT
public static final BITPIX SHORT
INTEGER
public static final BITPIX INTEGER
FLOAT
public static final BITPIX FLOAT
DOUBLE
public static final BITPIX DOUBLE
values
public static BITPIX[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (BITPIX c : BITPIX.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BITPIX valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getBitpix
public final int getBitpix()
- Returns:
- the bitpix as an integer value.
getBitpix
public static final BITPIX getBitpix(int value)
- Parameters:
value
- an integer BITPIX value (8, 16, 32, -32, -64).
- Returns:
- BITPIX enumeration type.