public static Object getDefaultValue(Class<?> clazz) {
		if (clazz.isPrimitive()) {
			if (long.class == clazz) {
				return 0L;
			} else if (int.class == clazz) {
				return 0;
			} else if (short.class == clazz) {
				return (short) 0;
			} else if (char.class == clazz) {
				return (char) 0;
			} else if (byte.class == clazz) {
				return (byte) 0;
			} else if (double.class == clazz) {
				return 0D;
			} else if (float.class == clazz) {
				return 0f;
			} else if (boolean.class == clazz) {
				return false;
			}
		}

		return null;
	}
public static Object getDefaultValue ( Class < ? > clazz ) { if ( clazz . isPrimitive ( ) ) { if ( long . class == clazz ) { return 0L ; } else if ( int . class == clazz ) { return 0 ; } else if ( short . class == clazz ) { return ( short ) 0 ; } else if ( char . class == clazz ) { return ( char ) 0 ; } else if ( byte . class == clazz ) { return ( byte ) 0 ; } else if ( double . class == clazz ) { return 0D ; } else if ( float . class == clazz ) { return 0f ; } else if ( boolean . class == clazz ) { return false ; } } return null ; }
获取指定类型分的默认值<br>
默认值规则为：

<pre>
1、如果为原始类型，返回0
2、非原始类型返回{@code null}
</pre>

@param clazz 类
@return 默认值
@since 3.0.8