public class Defaults
extends java.lang.Object
| Constructor and Description |
|---|
Defaults() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
defaultValueAsLiteral(java.lang.Class<?> type)
Returns a String literal representation of the default value of
type as defined by JLS --- 0 for
numbers, false for boolean and '\0' for char. |
public static java.lang.String defaultValueAsLiteral(java.lang.Class<?> type)
type as defined by JLS --- 0 for
numbers, false for boolean and '\0' for char. For non-primitive types and
void, "null" is returned.type - the typetype as defined by JLS