public class MWClassID
extends java.lang.Object
implements java.io.Serializable
MWClassID
class enumerates all MATLAB array types.
This class contains no public constructors. A set of public static
MWClassID
instances are provided, one for each MATLAB array type.
Example: Specifying an MWClassID Value
Construct a scalar numeric array of type MWClassID.INT16:double AReal = 24; MWNumericArray A = new MWNumericArray(AReal, MWClassID.INT16); System.out.println("Array A of type " + A.classID() + " = \n" + A);When you run this example, the results are as follows:
Array A of type int16 = 24
Modifier and Type | Field and Description |
---|---|
static MWClassID |
CELL
MATLAB array type: cell
|
static MWClassID |
CHAR
MATLAB array type: char
|
static MWClassID |
DOUBLE
MATLAB array type: double
|
static MWClassID |
FUNCTION
MATLAB array type: function
Note: MATLAB function arrays are not supported in the current release. |
static MWClassID |
INT16
MATLAB array type: int16
|
static MWClassID |
INT32
MATLAB array type: int32
|
static MWClassID |
INT64
MATLAB array type: int64
|
static MWClassID |
INT8
MATLAB array type: int8
|
static MWClassID |
LOGICAL
MATLAB array type: logical
|
static MWClassID |
OBJECT
MATLAB array type: object
Note: MATLAB object arrays are not supported in the current release. |
static MWClassID |
OPAQUE
MATLAB array type: opaque
|
static MWClassID |
SINGLE
MATLAB array type: single
|
static MWClassID |
STRING
MATLAB array type: string
|
static MWClassID |
STRUCT
MATLAB array type: struct
|
static MWClassID |
UINT16
MATLAB array type: uint16
|
static MWClassID |
UINT32
MATLAB array type: uint32
|
static MWClassID |
UINT64
MATLAB array type: uint64
|
static MWClassID |
UINT8
MATLAB array type: uint8
|
static MWClassID |
UNKNOWN
MATLAB array type: empty array
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other
MWClassID is equal to this one. |
int |
getSize()
Returns the size in bytes of an array element of this type.
|
int |
hashCode()
Returns a hash code value for the type.
|
boolean |
isNumeric()
Tests if this type is numeric.
|
protected java.lang.Object |
readResolve()
Called during serialization.
|
java.lang.String |
toString()
Returns a string representation of the type.
|
public static final MWClassID UNKNOWN
public static final MWClassID CELL
public static final MWClassID STRUCT
public static final MWClassID LOGICAL
public static final MWClassID CHAR
public static final MWClassID DOUBLE
public static final MWClassID SINGLE
public static final MWClassID INT8
public static final MWClassID UINT8
public static final MWClassID INT16
public static final MWClassID UINT16
public static final MWClassID INT32
public static final MWClassID UINT32
public static final MWClassID INT64
public static final MWClassID UINT64
public static final MWClassID FUNCTION
public static final MWClassID OPAQUE
public static final MWClassID STRING
public static final MWClassID OBJECT
public final java.lang.String toString()
toString
in class java.lang.Object
public final boolean equals(java.lang.Object obj)
MWClassID
is equal to this one.equals
in class java.lang.Object
MWClassID
is equal to this one, false otherwisepublic final int hashCode()
hashCode
in class java.lang.Object
public final int getSize()
public boolean isNumeric()
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
- exception© 1994-2017 The MathWorks, Inc. Patents Trademarks