- AbstractResourceDescriptor - com.mzlion.core.io.resource中的类
-
- AbstractResourceDescriptor() - 类 的构造器com.mzlion.core.io.resource.AbstractResourceDescriptor
-
- addDate(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
给指定日期加(减)天数
比如时间2014-05-12 12:00:00 DateCalcUtils.addDate(date,1); 2014-05-11 12:00:00
比如时间2014-05-12 12:00:00 DateCalcUtils.addDate(date,-1); 2014-05-13 12:00:00
- addHour(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
给指定日期加(减)小时数
比如时间2014-05-12 12:00:00 DateCalcUtils.addHour(date,1); 2014-05-12 13:00:00
比如时间2014-05-12 12:00:00 DateCalcUtils.addHour(date,-1); 2014-05-12 11:00:00
- addMilliSecond(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
给指定时间加/减毫秒数
- addMinute(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
给指定日期加(减)分钟数
比如时间2014-05-12 12:00:00 DateCalcUtils.addMinute(date,2); 2014-05-12 12:02:00
比如时间2014-05-12 12:00:00 DateCalcUtils.addMinute(date,-2); 2014-05-12 11:58:00
- addMonth(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
给指定日期加(减)月数
比如时间2014-05-12 12:10:00 DateCalcUtils.addMonth(date,1); 2014-06-12 12:10:00
比如时间2014-05-12 12:10:00 DateCalcUtils.addMonth(date,-1); 2014-04-12 12:10:00
- addMonth(Date, int, boolean) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
给指定日期加(减)月数
比如时间2014-05-12 12:10:00 DateCalcUtils.addMonth(date,1,false); 2014-06-12 12:10:00
比如时间2014-05-12 12:10:00 DateCalcUtils.addMonth(date,1,true); 2014-06-01 00:00:00
- addSecond(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
给指定日期加(减)秒数
比如时间2014-05-12 12:00:00 DateCalcUtils.addSecond(date,2); 2014-05-12 12:00:02
比如时间2014-05-12 12:00:00 DateCalcUtils.addSecond(date,-2); 2014-05-12 11:59:58
- addStringToArray(String[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
向数组中追加一个字符串,返回一个新的字符串数组.
- addYear(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
给指定日期加(减)年份数
比如时间2014-05-12 12:10:00 DateCalcUtils.addYear(date,1); 2015-06-12 12:10:00
比如时间2014-05-12 12:10:00 DateCalcUtils.addYear(date,-1); 2013-04-12 12:10:00
- ALGORITHM_MD5 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
-
- ALGORITHM_SHA_1 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
-
- ALGORITHM_SHA_256 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
-
- ALGORITHM_SHA_384 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
-
- ALGORITHM_SHA_512 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
-
- ALL - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_APK - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_DOC - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_FORM_URLENCODED - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_GZ - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_IPA - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_JSON - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_OCTET_STREAM - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_PDF - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_PPT - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_XLS - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_XML - 类 中的静态变量com.mzlion.core.http.ContentType
-
- APPLICATION_ZIP - 类 中的静态变量com.mzlion.core.http.ContentType
-
- applyRelativePath(String, String) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
-
将相对路径
relativePath转为相对于
path路径下的文件路径
StringUtils.applyRelativePath("/opt/app/config.properties", "/xml/jdbc.xml"); //--- /opt/app/xml/jdbc.properties
StringUtils.applyRelativePath("/opt/app/config/", "/xml/jdbc.xml"); //--- /opt/app/config/xml/jdbc.properties
- ArrayUtils - com.mzlion.core.lang中的类
-
数组工具类
- asCommonSignString(Map<String, String>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
将Map对象的数据转为通用签名字符串(目前通用签名规则为:将key和value用'='连接,每个键值对之间用' '连接,并且键列表按照自然排序)
- asList(T...) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
- asMap(K[], V[]) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
将数组一一映射转换为Map对象,思路来自于Python中的字典,如果两个数组的长度不一致,则取较短的那个数组。
- asMap(String, String, String) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
键值映射,将keyStr和valueStr按照delimiter分隔符分割,然后一一映射为Map对象。
- Assert - com.mzlion.core.lang中的类
-
参数校验工具类
- avoidScientificNotation(double) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
-
将科学计数法转为字符串
- avoidScientificNotation(String) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
-
将科学计数法转为字符串
- FatalBeanException - com.mzlion.core.exceptions中的异常错误
-
Thrown on an unrecoverable problem encountered in the
beans packages or sub-packages, e.g. bad class or field.
- FatalBeanException(String) - 异常错误 的构造器com.mzlion.core.exceptions.FatalBeanException
-
Create a new FatalBeanException with the specified message.
- FatalBeanException(String, Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalBeanException
-
Create a new FatalBeanException with the specified message
and root cause.
- FatalDigestException - com.mzlion.core.exceptions中的异常错误
-
MessageDigest exception
- FatalDigestException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalDigestException
-
Create a new FatalBeanException with the root cause.
- FatalFileException - com.mzlion.core.exceptions中的异常错误
-
Thrown on an unrecoverable problem encountered in the file operate.
- FatalFileException(String) - 异常错误 的构造器com.mzlion.core.exceptions.FatalFileException
-
Create a new FatalFileException with the specified message.
- FatalFileException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalFileException
-
Create a new FatalFileException with the root cause.
- FatalFileException(String, Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalFileException
-
Create a new FatalFileException with the specified message and root cause.
- FatalStreamException - com.mzlion.core.exceptions中的异常错误
-
Thrown on an unrecoverable problem encountered on stream.
- FatalStreamException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalStreamException
-
Constructs a new runtime exception with the specified cause and a
detail message of (cause==null ?
- FatalStreamException(String, Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalStreamException
-
Constructs a new runtime exception with the specified detail message and
cause.
- fen2Yuan(long) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
-
人民币金额分转元,保留2位小数
- fen2Yuan(String) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
-
人民币金额分转元,保留2位小数
- FieldFilter - com.mzlion.core.reflect中的接口
-
field过滤器
- FILE_URL_PREFIX - 类 中的静态变量com.mzlion.core.io.ResourceUtils
-
- FileArchiveException - com.mzlion.core.exceptions中的异常错误
-
Thrown an exception on file archive.
- FileArchiveException(String) - 异常错误 的构造器com.mzlion.core.exceptions.FileArchiveException
-
Constructs a new runtime exception with the specified detail message.
- FileArchiveException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FileArchiveException
-
Constructs a new runtime exception with the specified cause and a
detail message of (cause==null ?
- FilenameUtils - com.mzlion.core.io中的类
-
文件名相关的工具类
- FilenameUtils() - 类 的构造器com.mzlion.core.io.FilenameUtils
-
- FileUtils - com.mzlion.core.io中的类
-
文件工具类,该工具类的部分实现参照了commons-io框架提供的方法。
- FileUtils() - 类 的构造器com.mzlion.core.io.FileUtils
-
- findField(Class<?>, String) - 类 中的静态方法com.mzlion.core.reflect.ReflectionUtils
-
根据fieldName在targetClass查找,支持父类的属性查找。
- findField(Class<?>, String, Class<?>) - 类 中的静态方法com.mzlion.core.reflect.ReflectionUtils
-
根据fieldName或fieldType在targetClass查找,支持父类的属性查找。
- forceMakeDir(String) - 类 中的静态方法com.mzlion.core.io.FileUtils
-
创建目录
- forceMakeDir(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
-
创建目录
- formatBeginDayInMonth(String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
获取当前时间的月份第一天,并且格式化为字符串
- formatBeginDayInMonth(Date, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
获取指定时间的月份第一天,并且格式化为字符串
- formatDate() - 类 中的静态方法com.mzlion.core.date.DateUtils
-
- formatDate(String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
按照格式化规则对当前日期进行格式化返回
- formatDate(Date) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
将日期转为字符串,格式化规则yyyyMMddHHmmss
- formatDate(Date, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
将日期转为字符串
- formatDate(long, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
将日期转为字符串
- formatDate(long) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
将日期转为字符串,格式化规则yyyyMMddHHmmss
- formatNextDate(int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
获取当前日期后N天(可为负值,则表示前N天)日期,并且格式化为字符串
- formatNextDate(Date, int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
获取指定日期后N天(可为负值,则表示前N天)日期,并且格式化为字符串
- formatNextMonths(int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
获取距离当前时间相隔months月份(前几个月或后几个月)的时间,并且格式化为字符串
- formatNextMonths(long, int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
获取距离指定时间specialTime相隔months月份(前几个月或后几个月)的时间,并且格式化为字符串
- formatNextMonths(Date, int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
-
获取距离指定时间specialTime相隔months月份(前几个月或后几个月)的时间
- formatSize(long) - 类 中的静态方法com.mzlion.core.io.FileUtils
-
将文件大小格式化输出
- formatSize(double) - 类 中的静态方法com.mzlion.core.io.FileUtils
-
将文件大小格式化输出
- formatSizeAsString(String) - 类 中的静态方法com.mzlion.core.io.FileUtils
-
将文件大小格式化输出
- fromJson(String, Class<T>) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
-
将json字符串转为Java对象
- fromJson(String, TypeRef<T>) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
-
将复杂的json字符串转为Java对象
- fromJson(String, Class<T>) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
-
将Json字符串转为对象
- fromJson(String, Type) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
-
将Json字符串转为对象
- fromJson(String, TypeRef<T>) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
-
将Json字符串转为对象
- gbk2Unicode(String) - 类 中的静态方法com.mzlion.core.lang.CharsetUtils
-
GBK编码的字符串转为Unicode编码的字符串
- gbk2utf8(String) - 类 中的静态方法com.mzlion.core.lang.CharsetUtils
-
gbk编码的字符串转为UTF8编码的字符串
- GenericException - com.mzlion.core.exceptions中的异常错误
-
GenericException represents all kinds of runtime exception in the application.
- GenericException() - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
-
Constructs a new runtime exception with null as its
detail message.
- GenericException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
-
Constructs a new runtime exception with the specified cause and a
detail message of (cause==null ?
- GenericException(String) - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
-
Constructs a new runtime exception with the specified detail message.
- GenericException(String, Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
-
Constructs a new runtime exception with the specified detail message and
cause.
- GenericException(String, Throwable, boolean, boolean) - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
-
Constructs a new runtime exception with the specified detail
message, cause, suppression enabled or disabled, and writable
stack trace enabled or disabled.
- get12Hour(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取小时(12制)
比如时间2014-05-12 22:10:00 DateCalcUtils.get12Hour(date); 10
- get24Hour(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取小时(24制)
比如时间2014-05-12 22:10:00 DateCalcUtils.get24Hour(date); 22
- getAllProperties() - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
-
返回所有的键值对
- getAllProperties() - 接口 中的方法com.mzlion.core.utils.PropertyResolver
-
返回所有的键值对
- getBeginDayInMonth(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取月份第一天
比如时间2014-05-12 DateCalcUtils.getBeginDayInMonth("2014-05-12","yyyy-MM-dd"); 204-05-01
- getCharset() - 类 中的方法com.mzlion.core.http.ContentType
-
获取字符集编码
- getClassLoader() - 类 中的方法com.mzlion.core.io.resource.DefaultResourceDescriptorLoader
-
- getClassLoader() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptorLoader
-
- getClientIp(HttpServletRequest) - 类 中的静态方法com.mzlion.core.http.IPUtils
-
获取用户的真正IP地址
- getDay(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取天
比如时间2014-05-12 12:10:00 DateCalcUtils.getDay(date); 12
- getDaysBetween(Date, Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
计算两个日期之间相差的天数,测试发现还是有问题(没问题)
比如Date start = 2012-2-12
Date end = 2012-3-1
DateCalcUtils.getDaysBetween(start,end) 18
- getDeclaredFields(Class<?>) - 类 中的静态方法com.mzlion.core.reflect.ReflectionUtils
-
获取Class定义的属性列表
- getDeclaredFields(Class<?>, FieldFilter...) - 类 中的静态方法com.mzlion.core.reflect.ReflectionUtils
-
根据过滤器过滤属性,最后返回类解析的属性列表
- getDefaultClassLoader() - 类 中的静态方法com.mzlion.core.utils.ClassLoaderUtils
-
返回一个默认的类加载器:首先会从当前线程获取类加载,如果获取失败则获取当前类的类加载器。
- getDescription() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
-
Return a description for this resource,
to be used for error output when working with the resource.
- getDescription() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
-
Return a description for this resource,
to be used for error output when working with the resource.
- getDescription() - 类 中的方法com.mzlion.core.io.resource.URLResourceDescriptor
-
Return a description for this resource,
to be used for error output when working with the resource.
- getDownloadFilename(HttpServletRequest, String) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
-
转义文件下载名
- getEndDayInMonth(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取月份最后一天
比如时间2014-05-12 DateCalcUtils.getEndDayInMonth(date); 204-05-31
- getFile() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
-
返回文件对象,如果对象不存在则返回null
- getFile() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
-
返回文件对象,如果对象不存在则返回null
- getFile() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
-
返回文件对象,如果对象不存在则返回null
- getFile(String) - 类 中的静态方法com.mzlion.core.io.ResourceUtils
-
- getFileExt(String) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
-
从文件路径中提取文件后缀名
StringUtils.getFileExt("/opt/app/config.properties"); //--- properties
- getFileExt(File) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
-
从文件路径中提取文件后缀名
StringUtils.getFileExt("/opt/app/config.properties"); //--- properties
- getFilename(String) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
-
从文件路径中提取文件名,不支持Windows系统下的路径
StringUtils.getFilename("/opt/app/config.properties"); //--- config.properties
- getFilename() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
-
返回文件名,如果资源不存在,则返回null
- getFilename() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
-
返回文件名,如果资源不存在,则返回null
- getFilename() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
-
返回文件名,如果资源不存在,则返回null
- getInputStream() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
-
获取输入流,该输入流支持多次读取
- getInputStream() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
-
获取输入流,该输入流支持多次读取
- getInputStream() - 类 中的方法com.mzlion.core.io.resource.URLResourceDescriptor
-
获取输入流,该输入流支持多次读取
- getInstance() - 类 中的静态方法com.mzlion.core.beans.PropertyUtilBean
-
- getMillisecond(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取毫秒
比如时间2014-05-12 22:10:00 DateCalcUtils.getMillisecond(date); 151
- getMimeType() - 类 中的方法com.mzlion.core.http.ContentType
-
获取MIME类型
- getMinute(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取分钟
比如时间2014-05-12 22:10:00 DateCalcUtils.getMinute(date); 10
- getMonth(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取月份
比如时间2014-05-12 12:10:00 DateCalcUtils.getMonth(date); 5
- getMonthsBetween(Date, Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
计算两个日期之间相差的月份
比如Date start = 2012-2-12
Date end = 2012-3-1
DateCalcUtils.getMonthsBetween(start,end) 1
- getPath() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
-
- getProperty(String) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
-
返回key对应的值
- getProperty(String, String) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
-
返回key对应的值,如果值不存在,则返回defaultValue
- getProperty(String, Class<T>) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
-
- getProperty(String, Class<T>, T) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
-
- getProperty(String) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
-
返回key对应的值
- getProperty(String, String) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
-
返回key对应的值,如果值不存在,则返回defaultValue
- getProperty(String, Class<T>) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
-
返回key对应的值,并且转换为对应类型targetType的值
- getProperty(String, Class<T>, T) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
-
返回key对应的值,并且转换为对应类型targetType的值
- getPropertyDescriptor(Object, String) - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
-
根据属性名称获取对应属性对象
- getPropertyDescriptor(Class<?>, String) - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
-
根据属性名称获取对应属性对象
- getPropertyDescriptors(Object) - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
-
获取Javabean的属性描述列表
- getPropertyDescriptors(Class<?>) - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
-
获取Javabean的属性描述列表
- getRawType() - 类 中的方法com.mzlion.core.json.TypeRef
-
Returns the raw (non-generic) type for this type.
- getRawType(Type) - 类 中的静态方法com.mzlion.core.utils.ClassUtils
-
返回类的原始类型
- getResourceDescriptor(String) - 类 中的方法com.mzlion.core.io.resource.DefaultResourceDescriptorLoader
-
- getResourceDescriptor(String) - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptorLoader
-
- getSecond(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取秒数
比如时间2014-05-12 22:10:00 DateCalcUtils.getSecond(date); 0
- getTempDirectory() - 类 中的静态方法com.mzlion.core.io.FileUtils
-
平台临时目录
- getTempDirectoryPath() - 类 中的静态方法com.mzlion.core.io.FileUtils
-
平台的临时目录
- getTimeMillis(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
获取时间的毫秒数,该毫秒是时间转换为毫秒,而不是日期时间中的转动的毫秒。
- getType() - 类 中的方法com.mzlion.core.json.TypeRef
-
Gets underlying Type instance.
- getURI() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
-
返回URI资源
- getURI() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
-
返回URI资源
- getURL() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
-
返回URL资源
- getURL() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
-
返回URL资源
- getURL() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
-
返回URL资源
- getURL() - 类 中的方法com.mzlion.core.io.resource.URLResourceDescriptor
-
返回URL资源
- getUserDirectory() - 类 中的静态方法com.mzlion.core.io.FileUtils
-
用户主目录
- getUserDirectoryPath() - 类 中的静态方法com.mzlion.core.io.FileUtils
-
返回用户的主目录
- getYear(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
-
从日期中获取年份
比如时间2014-05-12 12:10:00 DateCalcUtils.getYear(date); 2014
- getZipFS() - 类 中的静态方法com.mzlion.core.utils.ZipUtils
-
- notEmpty(Collection<?>, String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the collection has one element at least.
- notEmpty(Map<?, ?>, String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the map has one entry at least.
- notEmpty(T[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one element at least.
- notEmpty(char[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one char element at least.
- notEmpty(boolean[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one boolean element at least.
- notEmpty(byte[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one byte element at least.
- notEmpty(short[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one short element at least.
- notEmpty(int[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one int element at least.
- notEmpty(long[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one long element at least.
- notEmpty(float[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one float element at least.
- notEmpty(double[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert that the array has one doube element at least.
- notNull(Object, String) - 类 中的静态方法com.mzlion.core.lang.Assert
-
Assert an object value is not null,throwing IllegalArgumentException if the test result is false.
- nullSafeEquals(Object, Object) - 类 中的静态方法com.mzlion.core.lang.ObjectUtils
-
比较两个对象的内容(equals),如果两个对象相等则返回true,如果两个中有一个为null则返回false.
- NumberUtils - com.mzlion.core.lang中的类
-
数值相关的工具类
- TEXT_HTML - 类 中的静态变量com.mzlion.core.http.ContentType
-
- TEXT_PLAIN - 类 中的静态变量com.mzlion.core.http.ContentType
-
- TEXT_XML - 类 中的静态变量com.mzlion.core.http.ContentType
-
- toByteArray(InputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
将输入流转为字节数组
- toByteArray(InputStream, int) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
从输入流中读取指定长度的字节数组
- toByteArray(Reader) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
将Reader的内容转为字节数组,否转换异常则返回null
- toByteArray(Reader, String) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
将Reader的内容转为字节数组,否转换异常则返回null
- toByteArray(Reader, Charset) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
将Reader的内容转为字节数组,否转换异常则返回null
- toCamelCase(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
-
将下划线大写方式命名的字符串转换为驼峰式。
- toJson(T) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
-
将Java对象转换JSON字符串.
- toJson(T, String...) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
-
将Java对象转换JSON字符串。
- toJson(T, boolean, String...) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
-
将Java对象转换JSON字符串。
- toJson(Object, Map<Class<?>, List<String>>) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
-
将Java对象转换为JSON字符串,会过滤掉指定类中的属性,不会污染到其它类中的同名属性。
- toJson(Object, SerializerFeature...) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
-
将Java对象转换为JSON字符串,该方法提供了开放的转换规则,比如出现了死循环而导致了结果不正确。
- toJson(T) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
-
将对象转为Json字符串,中文自动转为Unicode码
- toJson(T, String...) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
-
将对象转为Json字符串,支持忽略的属性列表.中文自动转为Unicode码
- toJson(T, boolean, String...) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
-
将对象转为Json字符串
将Javabean对象转为JSON字符串时希望非ASCII码(如中文)不Unicode转码,则可以调用该方法完成需求
- toJson(T, boolean, boolean, String...) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
-
将对象转为Json字符串
该方法除了更够控制是否转换Unicode之外,还可以支持值为null的属性名是否包含在JSON字符串中
- toMapAsValueObject(Object) - 类 中的静态方法com.mzlion.core.utils.BeanUtils
-
将Javabean对象转为Map,其中值的类型为Object
- toMapAsValueString(Object) - 类 中的静态方法com.mzlion.core.utils.BeanUtils
-
将Javabean对象转为Map,其中值的类型为String,空值的属性会被忽略。
- toMapAsValueString(Object, boolean) - 类 中的静态方法com.mzlion.core.utils.BeanUtils
-
将Javabean对象转为Map,其中值的类型为String
- toString() - 类 中的方法com.mzlion.core.http.ContentType
-
- toString(InputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
- toString(InputStream, String) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
- toString(InputStream, Charset) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
- toString(Reader) - 类 中的静态方法com.mzlion.core.io.IOUtils
-
- toString() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
-
- toString(Object[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(Object[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(char[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(char[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(boolean[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(boolean[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(byte[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(byte[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(short[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(short[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(int[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(int[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(long[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(long[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(float[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(float[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(double[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用英文半角逗号连接
- toString(double[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
-
将数组转为字符串,使用delimiter将元素连接起来
- toString(Collection<String>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
将集合数据转为字符串,每个元素之间采用,拼接。
- toString(Collection<String>, String) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
将集合数据转为字符串,每个元素之间采用delimiter拼接。
- toString(Map<String, String>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
将Map对象转为形如URL参数格式的字符串
Map<String,String> params = new HashMap<>();
params.put("username","admin");
params.put("password","123456");
String str = CollectionUtils.toString(params);
//则得到的字符串结果为 "username=admin password=123456";
- toString(Map<String, String>, String, String) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
将Map对象转成字符串,其中Key与Value的连接使用keyDelimiter拼接,键值对之间采用采用entryDelimiter拼接
Map<String,String> params = new HashMap<>();
params.put("username","admin");
params.put("password","123456");
String str = CollectionUtils.toString(params,"=","|");
//则得到的字符串结果为 username=admin|password=123456
- toStringArray(Collection<String>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
-
集合对象转为数组
CollectionUtils.toStringArray(Arrays.asList("hello","boy","amazing")); //--- [boy,hello,amazing]
- toUnderline(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
-
将驼峰式命名的字符串转换为下划线字符串。
- toUnderline(String, boolean) - 类 中的静态方法com.mzlion.core.lang.StringUtils
-
将驼峰式命名的字符串转换为下划线字符串。
- toURI(URL) - 类 中的静态方法com.mzlion.core.io.ResourceUtils
-
- toURI(String) - 类 中的静态方法com.mzlion.core.io.ResourceUtils
-
- trim(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
-
去除字符串左右两侧的空白符
StringUtils.trim(null); //--- null
StringUtils.trim(""); //--- ""
StringUtils.trim(" "); //--- ""
StringUtils.trim(" a b "); //--- a b
- trimLeftWhiteSpace(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
-
去除字符串左侧的空白字符
StringUtils.trimLeftWhiteSpace(null); //--- null
StringUtils.trimLeftWhiteSpace("ab"); //--- null
StringUtils.trimLeftWhiteSpace((" ab c");//--- ab c
- trimRightWhiteSpace(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
-
去除字符串右侧的空白字符
StringUtils.trimRightWhiteSpace(null); //--- null
StringUtils.trimRightWhiteSpace("ab"); //--- null
StringUtils.trimRightWhiteSpace((" ab c ");//--- ab c
- TypeRef<T> - com.mzlion.core.json中的类
-
该类主要用于传递泛型的类型,避免在运行时期找不到泛型的实际类型。
- TypeRef() - 类 的构造器com.mzlion.core.json.TypeRef
-