Debug.printEnumIf

Overview | Methods | This Package | All Packages

Debug.printEnumIf

Prints the text name for a value defined in an enumerator class.

Syntax

public static void printEnumIf( boolean condition, int value, Class enumClass )

public static void printEnumIf( String name, int value, Class enumClass )

Parameters

condition

The condition to check.

value

The value of the enumerator.

enumClass

The enumerator class that defines the value.

name

The name of the switch to check.

Remarks

In the first syntax, this method prints the text name for a value defined in an enumerator class if the specified condition is true. In the second syntax, this method prints the text name for a value defined in an enumerator class if the named switch is set to true.

This method will be omitted from your code unless you have the DEBUG conditional compile switch set.

See Also    getEnumText