Package org.yamcs.studio.data.vtype
Enum Class VImageDataType
- All Implemented Interfaces:
Serializable
,Comparable<VImageDataType>
,Constable
Data type description for
VImage
data.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionValue has type boolean.Value has type byte.Value has type double.value has type float.Value has type int.Value has type long.Value has type short.Value has type string.Value has type ubyte.Value has type uint.Value has type ulong.Value has type ushort. -
Method Summary
Modifier and TypeMethodDescriptionstatic VImageDataType
getVImageDataType
(String type) Get the VImageDataType for a string defining the type.boolean
Is this an integer (signed or unsigned). true if byte, short, int, long, ubyte, ushort, uint, or ulong.boolean
Is this a Java numeric type?boolean
Is this a Java primitive type?boolean
Is this an unsigned integer. true if ubyte, ushort, uint, or ulong.toString()
static VImageDataType
Returns the enum constant of this class with the specified name.static VImageDataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
pvBoolean
Value has type boolean. -
pvByte
Value has type byte. -
pvShort
Value has type short. -
pvInt
Value has type int. -
pvLong
Value has type long. -
pvUByte
Value has type ubyte. -
pvUShort
Value has type ushort. -
pvUInt
Value has type uint. -
pvULong
Value has type ulong. -
pvFloat
value has type float. -
pvDouble
Value has type double. -
pvString
Value has type string.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isInteger
public boolean isInteger()Is this an integer (signed or unsigned). true if byte, short, int, long, ubyte, ushort, uint, or ulong.- Returns:
- true if it is an integer type
-
isUInteger
public boolean isUInteger()Is this an unsigned integer. true if ubyte, ushort, uint, or ulong.- Returns:
- true if it is an unsigned integer type
-
isNumeric
public boolean isNumeric()Is this a Java numeric type?- Returns:
- true if the type is a Java numeric type. The numeric types are byte, short, int, long, float, and double.
-
isPrimitive
public boolean isPrimitive()Is this a Java primitive type?- Returns:
- true if the type is a Java primitive type. The numeric types and boolean are primitive types.
-
getVImageDataType
Get the VImageDataType for a string defining the type.- Parameters:
type
- a character string defining the type- Returns:
- the VImageDataType or null if an illegal type
-
toString
- Overrides:
toString
in classEnum<VImageDataType>
-