ch.javasoft.jsmat.common
Enum MatType

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

public enum MatType
extends Enum<MatType>

Matlab primitive type constants


Enum Constant Summary
COMPRESSED
           
DOUBLE
           
INT16
           
INT32
           
INT64
           
INT8
           
MATRIX
           
SINGLE
           
UINT16
           
UINT32
           
UINT64
           
UINT8
           
UNKNOWN
           
UTF16
           
UTF32
           
UTF8
           
 
Field Summary
 int size
           
 int type
           
 
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.
 
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 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
Field Detail

type

public final int type

size

public final int size
Method Detail

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)