Package ptolemy.actor.lib.jjs
Enum HelperBase.DATA_TYPE
- java.lang.Object
-
- java.lang.Enum<HelperBase.DATA_TYPE>
-
- ptolemy.actor.lib.jjs.HelperBase.DATA_TYPE
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HelperBase.DATA_TYPE>
- Enclosing class:
- HelperBase
public static enum HelperBase.DATA_TYPE extends java.lang.Enum<HelperBase.DATA_TYPE>
Support data types for reading and writing to buffers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HelperBase.DATA_TYPE
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HelperBase.DATA_TYPE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final HelperBase.DATA_TYPE BYTE
Bytes.
-
DOUBLE
public static final HelperBase.DATA_TYPE DOUBLE
Doubles.
-
FLOAT
public static final HelperBase.DATA_TYPE FLOAT
Floats.
-
IMAGE
public static final HelperBase.DATA_TYPE IMAGE
Images.
-
INT
public static final HelperBase.DATA_TYPE INT
Integers.
-
JSON
public static final HelperBase.DATA_TYPE JSON
JSON.
-
NUMBER
public static final HelperBase.DATA_TYPE NUMBER
JavaScript numbers..
-
SHORT
public static final HelperBase.DATA_TYPE SHORT
Shorts.
-
STRING
public static final HelperBase.DATA_TYPE STRING
Strings.
-
UNSIGNEDBYTE
public static final HelperBase.DATA_TYPE UNSIGNEDBYTE
Unsigned bytes.
-
UNSIGNEDSHORT
public static final HelperBase.DATA_TYPE UNSIGNEDSHORT
Unsigned shorts.
-
-
Method Detail
-
values
public static HelperBase.DATA_TYPE[] 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 (HelperBase.DATA_TYPE c : HelperBase.DATA_TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HelperBase.DATA_TYPE 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 namejava.lang.NullPointerException
- if the argument is null
-
-