ch.javasoft.jsmat.common
Enum MatType
java.lang.Object
java.lang.Enum<MatType>
ch.javasoft.jsmat.common.MatType
- All Implemented Interfaces:
- Serializable, Comparable<MatType>
public enum MatType
- extends Enum<MatType>
Matlab primitive type constants
|
Method Summary |
static MatType |
getByType(int type)
|
static MatType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
UNKNOWN
public static final MatType UNKNOWN
INT8
public static final MatType INT8
UINT8
public static final MatType UINT8
INT16
public static final MatType INT16
UINT16
public static final MatType UINT16
INT32
public static final MatType INT32
UINT32
public static final MatType UINT32
SINGLE
public static final MatType SINGLE
DOUBLE
public static final MatType DOUBLE
INT64
public static final MatType INT64
UINT64
public static final MatType UINT64
MATRIX
public static final MatType MATRIX
COMPRESSED
public static final MatType COMPRESSED
UTF8
public static final MatType UTF8
UTF16
public static final MatType UTF16
UTF32
public static final MatType UTF32
type
public final int type
size
public final int size
values
public static MatType[] 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 (MatType c : MatType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MatType valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getByType
public static MatType getByType(int type)