APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvmstat.perfdata.monitor.v2_0

public Class TypeCode

extends Object
Class Inheritance

A typesafe enumeration for describing standard Java type codes.
Author
Brian Doherty
Since
1.5

Field Summary

Modifier and TypeField and Description
public static final TypeCode
private static TypeCode[]
public static final TypeCode
public static final TypeCode
public static final TypeCode
public static final TypeCode
public static final TypeCode
public static final TypeCode
public static final TypeCode
private final String
public static final TypeCode
public static final TypeCode
private final char
public static final TypeCode

Constructor Summary

AccessConstructor and Description
private
TypeCode(String name, char value)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

int - the integer representation for the enumeration.
toChar
()

Convert enumeration to its character representation.

public String

Returns:

String - the string representation for the enumeration.
toString
()

Overrides java.lang.Object.toString.

Convert enumeration value to a String.

public static TypeCode

Returns:

TypeCode - The TypeCode enumeration object for the given character.
toTypeCode
(char
an character representing a Java TypeCode
c
)

Map a character value to its corresponding TypeCode object.

public static TypeCode

Returns:

TypeCode - The TypeCode enumeration object for the given byte.
toTypeCode
(byte
a byte representing a Java TypeCode. This value is converted into a char and used to find the corresponding TypeCode.
b
)

Map a character value to its corresponding TypeCode object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ARRAYback to summary
public static final TypeCode ARRAY
basicTypesback to summary
private static TypeCode[] basicTypes
BOOLEANback to summary
public static final TypeCode BOOLEAN
BYTEback to summary
public static final TypeCode BYTE
CHARback to summary
public static final TypeCode CHAR
DOUBLEback to summary
public static final TypeCode DOUBLE
FLOATback to summary
public static final TypeCode FLOAT
INTback to summary
public static final TypeCode INT
LONGback to summary
public static final TypeCode LONG
nameback to summary
private final String name
OBJECTback to summary
public static final TypeCode OBJECT
SHORTback to summary
public static final TypeCode SHORT
valueback to summary
private final char value
VOIDback to summary
public static final TypeCode VOID

Constructor Detail

TypeCodeback to summary
private TypeCode(String name, char value)

Method Detail

toCharback to summary
public int toChar()

Convert enumeration to its character representation.

Returns:int

int - the integer representation for the enumeration.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Convert enumeration value to a String.

Returns:String

String - the string representation for the enumeration.

toTypeCodeback to summary
public static TypeCode toTypeCode(char c)

Map a character value to its corresponding TypeCode object.

Parameters
c:char

an character representing a Java TypeCode

Returns:TypeCode

TypeCode - The TypeCode enumeration object for the given character.

Exceptions
IllegalArgumentException:
Thrown if c is not a valid Java TypeCode.
toTypeCodeback to summary
public static TypeCode toTypeCode(byte b)

Map a character value to its corresponding TypeCode object.

Parameters
b:byte

a byte representing a Java TypeCode. This value is converted into a char and used to find the corresponding TypeCode.

Returns:TypeCode

TypeCode - The TypeCode enumeration object for the given byte.

Exceptions
IllegalArgumentException:
Thrown if v is not a valid Java TypeCode.