|
Jvmstat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsun.jvmstat.perfdata.monitor.v2_0.TypeCode
public class TypeCode
A typesafe enumeration for describing standard Java type codes.
Field Summary | |
---|---|
static TypeCode |
ARRAY
|
static TypeCode |
BOOLEAN
|
static TypeCode |
BYTE
|
static TypeCode |
CHAR
|
static TypeCode |
DOUBLE
|
static TypeCode |
FLOAT
|
static TypeCode |
INT
|
static TypeCode |
LONG
|
static TypeCode |
OBJECT
|
static TypeCode |
SHORT
|
static TypeCode |
VOID
|
Method Summary | |
---|---|
int |
toChar()
Convert enumeration to its character representation. |
String |
toString()
Convert enumeration value to a String. |
static TypeCode |
toTypeCode(byte b)
Map a character value to its corresponding TypeCode object. |
static TypeCode |
toTypeCode(char c)
Map a character value to its corresponding TypeCode object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TypeCode BOOLEAN
public static final TypeCode CHAR
public static final TypeCode FLOAT
public static final TypeCode DOUBLE
public static final TypeCode BYTE
public static final TypeCode SHORT
public static final TypeCode INT
public static final TypeCode LONG
public static final TypeCode OBJECT
public static final TypeCode ARRAY
public static final TypeCode VOID
Method Detail |
---|
public String toString()
toString
in class Object
public int toChar()
public static TypeCode toTypeCode(char c)
c
- an character representing a Java TypeCode
IllegalArgumentException
- Thrown if c
is not
a valid Java TypeCode.public static TypeCode toTypeCode(byte b)
b
- a byte representing a Java TypeCode. This value is
converted into a char and used to find the corresponding
TypeCode.
IllegalArgumentException
- Thrown if v
is not
a valid Java TypeCode.
|
Jvmstat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |