Package org.powermock.reflect.internal
Class TypeUtils
- java.lang.Object
-
- org.powermock.reflect.internal.TypeUtils
-
public class TypeUtils extends java.lang.ObjectUtilities for types.
-
-
Constructor Summary
Constructors Constructor Description TypeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectgetDefaultValue(java.lang.Class<?> type)Get the default value for a type.static java.lang.ObjectgetDefaultValue(java.lang.String fullyQualifiedTypeName)Get the default value of a type with based on its fully-qualified name.static java.lang.StringgetDefaultValueAsString(java.lang.String fullyQualifiedTypeName)Get the default value of a type with based on its fully-qualified name.
-
-
-
Method Detail
-
getDefaultValue
public static java.lang.Object getDefaultValue(java.lang.Class<?> type)
Get the default value for a type.- Parameters:
type- The type whose default value to get.- Returns:
- The default return type of
type.
-
getDefaultValue
public static java.lang.Object getDefaultValue(java.lang.String fullyQualifiedTypeName)
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
public static java.lang.String getDefaultValueAsString(java.lang.String fullyQualifiedTypeName)
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.
-
-