ch.javasoft.jsmat.common
Enum MatClass
java.lang.Object
java.lang.Enum<MatClass>
ch.javasoft.jsmat.common.MatClass
- All Implemented Interfaces:
- Serializable, Comparable<MatClass>
public enum MatClass
- extends Enum<MatClass>
Matlab class constants (matrix types)
|
Method Summary |
static MatClass |
getByType(int type)
|
static MatClass |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MatClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
UNKNOWN
public static final MatClass UNKNOWN
CELL
public static final MatClass CELL
STRUCT
public static final MatClass STRUCT
OBJECT
public static final MatClass OBJECT
CHAR
public static final MatClass CHAR
SPARSE
public static final MatClass SPARSE
DOUBLE
public static final MatClass DOUBLE
SINGLE
public static final MatClass SINGLE
INT8
public static final MatClass INT8
UINT8
public static final MatClass UINT8
INT16
public static final MatClass INT16
UINT16
public static final MatClass UINT16
INT32
public static final MatClass INT32
UINT32
public static final MatClass UINT32
INT64
public static final MatClass INT64
UINT64
public static final MatClass UINT64
FUNCTION
public static final MatClass FUNCTION
OPAQUE
public static final MatClass OPAQUE
type
public final int type
values
public static MatClass[] 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 (MatClass c : MatClass.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MatClass 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 MatClass getByType(int type)