Class DefaultValues

java.lang.Object
mockit.internal.util.DefaultValues

public final class DefaultValues extends Object
Provides default values for each type, typically used for returning default values according to method return types.
  • Method Details

    • getReturnTypeDesc

      @NonNull public static String getReturnTypeDesc(@NonNull String methodNameAndDesc)
    • computeForType

      @Nullable public static Object computeForType(@NonNull String typeDesc)
    • computeForArrayType

      @NonNull public static Object computeForArrayType(@NonNull String typeDesc)
    • computeForType

      @Nullable public static Object computeForType(@NonNull Class<?> type)
    • defaultValueForPrimitiveType

      @NonNull public static Object defaultValueForPrimitiveType(@NonNull Class<?> type)
    • computeForWrapperType

      @Nullable public static <T> T computeForWrapperType(@NonNull Type type)
    • computeForReturnType

      @Nullable public static Object computeForReturnType(@NonNull String methodNameAndDesc)