public class TypeUtils
extends java.lang.Object
Constructor and Description |
---|
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getDefaultValue(java.lang.Class<?> type)
Get the default value for a type.
|
static java.lang.Object |
getDefaultValue(java.lang.String fullyQualifiedTypeName)
Get the default value of a type with based on its fully-qualified name.
|
static java.lang.String |
getDefaultValueAsString(java.lang.String fullyQualifiedTypeName)
Get the default value of a type with based on its fully-qualified name.
|
public static java.lang.Object getDefaultValue(java.lang.Class<?> type)
type
- The type whose default value to get.type
.public static java.lang.Object getDefaultValue(java.lang.String fullyQualifiedTypeName)
fullyQualifiedTypeName
- The name of the type whose default value to get.fullyQualifiedTypeName
.public static java.lang.String getDefaultValueAsString(java.lang.String fullyQualifiedTypeName)
fullyQualifiedTypeName
- The name of the type whose default value to get.fullyQualifiedTypeName
.