Package org.powermock.reflect.internal
Class TypeUtils
java.lang.Object
org.powermock.reflect.internal.TypeUtils
Utilities for types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetDefaultValue(Class<?> type) Get the default value for a type.static ObjectgetDefaultValue(String fullyQualifiedTypeName) Get the default value of a type with based on its fully-qualified name.static StringgetDefaultValueAsString(String fullyQualifiedTypeName) Get the default value of a type with based on its fully-qualified name.
-
Constructor Details
-
TypeUtils
public TypeUtils()
-
-
Method Details
-
getDefaultValue
Get the default value for a type.- Parameters:
type- The type whose default value to get.- Returns:
- The default return type of
type.
-
getDefaultValue
Get the default value of a type with based on its fully-qualified name.- Parameters:
fullyQualifiedTypeName- The name of the type whose default value to get.- Returns:
- The default value of
fullyQualifiedTypeName.
-
getDefaultValueAsString
Get the default value of a type with based on its fully-qualified name.- Parameters:
fullyQualifiedTypeName- The name of the type whose default value to get.- Returns:
- The default value of
fullyQualifiedTypeName.
-