ch.javasoft.jsmat.common
Enum MatClass

java.lang.Object
  extended by java.lang.Enum<MatClass>
      extended by ch.javasoft.jsmat.common.MatClass
All Implemented Interfaces:
Serializable, Comparable<MatClass>

public enum MatClass
extends Enum<MatClass>

Matlab class constants (matrix types)


Enum Constant Summary
CELL
           
CHAR
           
DOUBLE
           
FUNCTION
           
INT16
           
INT32
           
INT64
           
INT8
           
OBJECT
           
OPAQUE
           
SINGLE
           
SPARSE
           
STRUCT
           
UINT16
           
UINT32
           
UINT64
           
UINT8
           
UNKNOWN
           
 
Field Summary
 int type
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Field Detail

type

public final int type
Method Detail

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)