- add(Object[], Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(boolean[], boolean) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(byte[], byte) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(char[], char) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(double[], double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(float[], float) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(int[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(long[], long) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(short[], short) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Copies the given array and adds the given element at the end of the new array.
- add(Object[], int, Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Inserts the specified element at the specified position in the array.
- add(char[], int, char) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Inserts the specified element at the specified position in the array.
- add(byte[], int, byte) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Inserts the specified element at the specified position in the array.
- add(short[], int, short) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Inserts the specified element at the specified position in the array.
- add(int[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Inserts the specified element at the specified position in the array.
- add(long[], int, long) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Inserts the specified element at the specified position in the array.
- add(float[], int, float) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Inserts the specified element at the specified position in the array.
- add(double[], int, double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Inserts the specified element at the specified position in the array.
- add(double, double) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
提供精确的加法运算
- add(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
提供精确的加法运算
- add(BigDecimal, BigDecimal) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
提供精确的加法运算
- addAll(Object[], Object[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(boolean[], boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(char[], char[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(byte[], byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(short[], short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(int[], int[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(long[], long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(float[], float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(double[], double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Adds all the elements of the given arrays into a new array.
- addAll(T[]...) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
将多个数组合并在一起
忽略null的数组
- addPrefixIfNot(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
如果给定字符串不是以prefix开头的,在开头补充 prefix
- addSuffixIfNot(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
如果给定字符串不是以suffix结尾的,在尾部补充 suffix
- appendRange(int, int, Collection<Integer>) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
将给定范围内的整数添加到已有集合中,步进为1
- appendRange(int, int, int, Collection<Integer>) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
将给定范围内的整数添加到已有集合中
- ArrayConst - me.wuwenbin.tools.util.lang.constant中的接口
-
created by Wuwenbin on 2017/8/20 at 10:57
- ArrayX - me.wuwenbin.tools.util.lang中的类
-
大部分拷贝于commons-lang3,修改了部分和增加了部分方法
created by Wuwenbin on 2017/8/20 at 10:50
- ArrayX() - 类 的构造器me.wuwenbin.tools.util.lang.ArrayX
-
- arrayX - 接口 中的静态变量me.wuwenbin.tools.util.Util
-
数组工具类
- attrValue(Element, String) - 类 中的方法me.wuwenbin.tools.util.xml.Dom4jXml
-
- C_BACKSLASH - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_BRACKET_END - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_BRACKET_START - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_COLON - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_COMMA - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_CR - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_DELIMITER_END - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_DELIMITER_START - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_DOT - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_LF - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_SLASH - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_SPACE - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_TAB - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- C_UNDERLINE - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.CharConst
-
- CharConst - me.wuwenbin.tools.util.lang.constant中的接口
-
字符串常量集合
created by Wuwenbin on 2017/8/20 at 0:04
- ClassScan - me.wuwenbin.tools.util.clazz中的类
-
Java Class扫描操作
- ClassScan() - 类 的构造器me.wuwenbin.tools.util.clazz.ClassScan
-
- classScan - 接口 中的静态变量me.wuwenbin.tools.util.Util
-
java class扫描
- cleanBlank(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
清理空白字符
- clone(Object[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Shallow clones an array returning a typecast result and handling
null.
- clone(long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Clones an array returning a typecast result and handling
null.
- clone(int[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Clones an array returning a typecast result and handling
null.
- clone(short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Clones an array returning a typecast result and handling
null.
- clone(char[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Clones an array returning a typecast result and handling
null.
- clone(byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Clones an array returning a typecast result and handling
null.
- clone(double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Clones an array returning a typecast result and handling
null.
- clone(float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Clones an array returning a typecast result and handling
null.
- clone(boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Clones an array returning a typecast result and handling
null.
- COLON - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- COMMA - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- compare(char, char) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较两个值的大小
- compare(double, double) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较两个值的大小
- compare(int, int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较两个值的大小
- compare(long, long) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较两个值的大小
- compare(short, short) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较两个值的大小
- compare(byte, byte) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较两个值的大小
- compareDate(Date, Date) - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- contains(Object[], Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the object is in the given array.
- contains(long[], long) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the value is in the given array.
- contains(int[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the value is in the given array.
- contains(short[], short) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the value is in the given array.
- contains(char[], char) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the value is in the given array.
- contains(byte[], byte) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the value is in the given array.
- contains(double[], double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the value is in the given array.
- contains(double[], double, double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if a value falling within the given tolerance is in the
given array.
- contains(float[], float) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the value is in the given array.
- contains(boolean[], boolean) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if the value is in the given array.
- containsIgnoreCase(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
是否包含特定字符,忽略大小写,如果给定两个参数都为null,返回true
- count(int, int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
计算等份个数
- count(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
统计指定内容中包含指定字符串的数量
参数为 null 或者 "" 返回 0.
- count(String, char) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
统计指定内容中包含指定字符的数量
- countSubStrReg(String, String) - 类 中的方法me.wuwenbin.tools.util.regex.Regex
-
获取符合reg正则表达式的字符串在String中出现的次数
- CR - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- createEmptyXmlFile(String) - 类 中的方法me.wuwenbin.tools.util.xml.Dom4jXml
-
- CRLF - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- currentTimestamp() - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- currentTimestamp2String(String) - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- elementText(Element, String) - 类 中的方法me.wuwenbin.tools.util.xml.W3cXml
-
根据节点名获得第一个子节点
- elementText(Element, String, String) - 类 中的方法me.wuwenbin.tools.util.xml.W3cXml
-
根据节点名获得第一个子节点
- EMPTY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- EMPTY_BOOLEAN_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable boolean array.
- EMPTY_BOOLEAN_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Boolean array.
- EMPTY_BYTE_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable byte array.
- EMPTY_BYTE_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Byte array.
- EMPTY_CHAR_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable char array.
- EMPTY_CHARACTER_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Character array.
- EMPTY_CLASS_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Class array.
- EMPTY_DOUBLE_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable double array.
- EMPTY_DOUBLE_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Double array.
- EMPTY_FLOAT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable float array.
- EMPTY_FLOAT_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Float array.
- EMPTY_INT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable int array.
- EMPTY_INTEGER_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Integer array.
- EMPTY_JSON - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.TextConst
-
- EMPTY_LONG_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable long array.
- EMPTY_LONG_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Long array.
- EMPTY_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Object array.
- EMPTY_SHORT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable short array.
- EMPTY_SHORT_OBJECT_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable Short array.
- EMPTY_STRING_ARRAY - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
An empty immutable String array.
- emptyToNull(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
当给定字符串为空字符串时,转换为null
- encodeColor(Color) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
- encodeColor(Color, String) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
- encodeHex(byte[]) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
将字节数组转换为十六进制字符数组
- encodeHex(String, Charset) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
将字节数组转换为十六进制字符数组
- encodeHex(byte[], boolean) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
将字节数组转换为十六进制字符数组
- encodeHexStr(byte[]) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
将字节数组转换为十六进制字符串
- encodeHexStr(String, Charset) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
将字节数组转换为十六进制字符串,结果为小写
- encodeHexStr(String) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
将字节数组转换为十六进制字符串,结果为小写,默认编码是UTF-8
- encodeHexStr(byte[], boolean) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
将字节数组转换为十六进制字符串
- endWith(String, String, boolean) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
是否以指定字符串结尾
- endWithIgnoreCase(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
是否以指定字符串结尾,忽略大小写
- equals(BigDecimal, BigDecimal) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较大小,相等 返回true
- equals(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
比较两个字符串(大小写敏感)。
- equalsIgnoreCase(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
比较两个字符串(大小写不敏感)。
- Escape - me.wuwenbin.tools.util.escape中的类
-
转义和反转义工具类Escape / Unescape
escape采用ISO Latin字符集对指定的字符串进行编码。
- Escape() - 类 的构造器me.wuwenbin.tools.util.escape.Escape
-
- escape(String) - 类 中的方法me.wuwenbin.tools.util.escape.Escape
-
Escape编码(Unicode)
该方法不会对 ASCII 字母和数字进行编码,也不会对下面这些 ASCII 标点符号进行编码: * @ - _ + . / 。
- escape - 接口 中的静态变量me.wuwenbin.tools.util.Util
-
转义与反转义操作工具类
- IDCard - me.wuwenbin.tools.util.idcard中的类
-
身份证校验工具类,提供较为精确的身份证校验
--15位身份证号码:第7、8位为出生年份(两位数),第9、10位为出生月份,第11、12位代表出生日期,第15位代表性别,奇数为男,偶数为女。
- IDCard() - 类 的构造器me.wuwenbin.tools.util.idcard.IDCard
-
- idCard - 接口 中的静态变量me.wuwenbin.tools.util.Util
-
身份证验证
- INDEX_NOT_FOUND - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.ArrayConst
-
The index value when an element is not found in a list or array: -1.
- INDEX_NOT_FOUND - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
Represents a failed index search.
- indexedFormat(String, Object...) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
有序的格式化文本,使用{number}做为占位符
例:
通常使用:format("this is {0} for {1}", "a", "b") -> this is a for b
- indexOf(Object[], Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given object in the array.
- indexOf(Object[], Object, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given object in the array starting at the given index.
- indexOf(long[], long) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array.
- indexOf(long[], long, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- indexOf(int[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array.
- indexOf(int[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- indexOf(short[], short) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array.
- indexOf(short[], short, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- indexOf(char[], char) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array.
- indexOf(char[], char, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- indexOf(byte[], byte) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array.
- indexOf(byte[], byte, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- indexOf(double[], double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array.
- indexOf(double[], double, double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value within a given tolerance in the array.
- indexOf(double[], double, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- indexOf(double[], double, int, double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- indexOf(float[], float) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array.
- indexOf(float[], float, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- indexOf(boolean[], boolean) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array.
- indexOf(boolean[], boolean, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the index of the given value in the array starting at the given index.
- INVALID_REGEX - 类 中的静态变量me.wuwenbin.tools.util.xml.W3cXml
-
在XML中无效的字符 正则
- is18Idcard(String) - 类 中的方法me.wuwenbin.tools.util.idcard.IDCard
-
18位身份证号码的基本数字和位数验校
- isABC(String) - 类 中的方法me.wuwenbin.tools.util.regex.Regex
-
判断是否纯字母组合
- isAllBlank(CharSequence...) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
给定所有字符串是否为空白
- isAllEmpty(CharSequence...) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
是否全部为空字符串
- isArray(Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
对象是否为数组对象
- isBlank(CharSequence) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
字符串是否为空白 空白的定义如下:
1、为null
2、为不可见字符(如空格)
3、""
- isBlankChar(char) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
是否空白符
空白符包括空格、制表符、全角空格和不间断空格
- isBlankChar(int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
是否空白符
空白符包括空格、制表符、全角空格和不间断空格
- isDouble(String) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
判断字符串是否是浮点数
- isEmail(String) - 类 中的方法me.wuwenbin.tools.util.regex.Regex
-
判断是否是符合邮箱
- isEmpty(Object[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of Objects is empty or null.
- isEmpty(long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive longs is empty or null.
- isEmpty(int[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive ints is empty or null.
- isEmpty(short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive shorts is empty or null.
- isEmpty(char[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive chars is empty or null.
- isEmpty(byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive bytes is empty or null.
- isEmpty(double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive doubles is empty or null.
- isEmpty(float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive floats is empty or null.
- isEmpty(boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive booleans is empty or null.
- isEmpty(CharSequence) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
字符串是否为空,空的定义如下 1、为null
2、为""
- isFloatNumeric(String) - 类 中的方法me.wuwenbin.tools.util.regex.Regex
-
判断是否浮点数字表示
- isGreater(BigDecimal, BigDecimal) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较大小,参数1>参数2 返回true
- isGreaterOrEqual(BigDecimal, BigDecimal) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较大小,参数1>=参数2 返回true
- isHexNumber(String) - 类 中的方法me.wuwenbin.tools.util.hex.Hex
-
判断给定字符串是否为16进制数
如果是,需要使用对应数字类型对象的decode方法解码
例如:Integer.decode方法解码int类型的16进制数字
- isInteger(String) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
判断String是否是整数
- isLess(BigDecimal, BigDecimal) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较大小,参数1<参数2 返回true
- isLessOrEqual(BigDecimal, BigDecimal) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
比较大小,参数1<=参数2 返回true
- isMatch(String, String) - 类 中的方法me.wuwenbin.tools.util.regex.Regex
-
判断字符串str是否符合正则表达式reg
- isNotBlank(CharSequence) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
字符串是否为非空白 空白的定义如下:
1、不为null
2、不为不可见字符(如空格)
3、不为""
- isNotEmpty(Object[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of Objects is not empty or not null.
- isNotEmpty(long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive longs is not empty or not null.
- isNotEmpty(int[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive ints is not empty or not null.
- isNotEmpty(short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive shorts is not empty or not null.
- isNotEmpty(char[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive chars is not empty or not null.
- isNotEmpty(byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive bytes is not empty or not null.
- isNotEmpty(double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive doubles is not empty or not null.
- isNotEmpty(float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive floats is not empty or not null.
- isNotEmpty(boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks if an array of primitive booleans is not empty or not null.
- isNotEmpty(CharSequence) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
字符串是否为非空白 空白的定义如下:
1、不为null
2、不为""
- isNumber(String) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
是否为数字
- isNumeric(String) - 类 中的方法me.wuwenbin.tools.util.regex.Regex
-
判断是否数字表示
- isPrimes(int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
是否是质数
质数表的质数又称素数。
- isSameLength(Object[], Object[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameLength(long[], long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameLength(int[], int[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameLength(short[], short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameLength(char[], char[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameLength(byte[], byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameLength(double[], double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameLength(float[], float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameLength(boolean[], boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same length, treating
null arrays as length 0.
- isSameType(Object, Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Checks whether two arrays are the same type taking into account
multi-dimensional arrays.
- isSurround(String, String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
给定字符串是否被字符包围
- isSurround(CharSequence, char, char) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
给定字符串是否被字符包围
- isValidate18IdCard(String) - 类 中的方法me.wuwenbin.tools.util.idcard.IDCard
-
判断18位身份证的合法性
根据〖中华人民共和国国家标准GB11643-1999〗中有关公民身份号码的规定,公民身份号码是特征组合码,由十七位数字本体码和一位数字校验码组成。
- isValidatedAllIdcard(String) - 类 中的方法me.wuwenbin.tools.util.idcard.IDCard
-
验证身份证是否合法
- isWrap(String, String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
指定字符串是否被包装
- isWrap(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
指定字符串是否被同一字符包装(前后都有这些字符串)
- isWrap(String, char) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
指定字符串是否被同一字符包装(前后都有这些字符串)
- isWrap(String, char, char) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
指定字符串是否被包装
- LangException - me.wuwenbin.tools.util.exception中的异常错误
-
created by Wuwenbin on 2017/8/20 at 11:34
- LangException(String) - 异常错误 的构造器me.wuwenbin.tools.util.exception.LangException
-
- LangException(Throwable) - 异常错误 的构造器me.wuwenbin.tools.util.exception.LangException
-
- LangException(String, Throwable) - 异常错误 的构造器me.wuwenbin.tools.util.exception.LangException
-
- lastIndexOf(Object[], Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given object within the array.
- lastIndexOf(Object[], Object, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given object in the array starting at the given index.
- lastIndexOf(long[], long) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within the array.
- lastIndexOf(long[], long, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- lastIndexOf(int[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within the array.
- lastIndexOf(int[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- lastIndexOf(short[], short) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within the array.
- lastIndexOf(short[], short, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- lastIndexOf(char[], char) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within the array.
- lastIndexOf(char[], char, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- lastIndexOf(byte[], byte) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within the array.
- lastIndexOf(byte[], byte, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- lastIndexOf(double[], double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within the array.
- lastIndexOf(double[], double, double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within a given tolerance in the array.
- lastIndexOf(double[], double, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- lastIndexOf(double[], double, int, double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- lastIndexOf(float[], float) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within the array.
- lastIndexOf(float[], float, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- lastIndexOf(boolean[], boolean) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value within the array.
- lastIndexOf(boolean[], boolean, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Finds the last index of the given value in the array starting at the given index.
- LF - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- lowerFIrstLetter(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
小写首字母
例如:str = Name, return name
- newArray(Class<?>, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
新建一个空数组
- null2Zero(BigDecimal) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
空转0
- nullToDefault(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
如果字符串是null,则返回指定默认字符串,否则返回字符串本身。
- nullToEmpty(Object[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(String[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(int[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(char[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(Long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(Integer[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(Short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(Character[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(Byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(Double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(Float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(Boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Defensive programming technique to change a null
reference to an empty one.
- nullToEmpty(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
当给定字符串为null时,转换为Empty
- NumberX - me.wuwenbin.tools.util.lang中的类
-
数字工具类
对于精确值计算应该使用
BigDecimal
JDK7中
BigDecimal(double val)构造方法的结果有一定的不可预知性,例如:
new BigDecimal(0.1)
表示的不是
0.1而是
0.1000000000000000055511151231257827021181583404541015625
这是因为0.1无法准确的表示为double。
- NumberX() - 类 的构造器me.wuwenbin.tools.util.lang.NumberX
-
- numberX - 接口 中的静态变量me.wuwenbin.tools.util.Util
-
数字和数学辅助操作
- range(int, int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
给定范围内的整数列表,步进为1
- range(int, int, int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
给定范围内的整数列表
- ransack(Element, List<Element>) - 类 中的方法me.wuwenbin.tools.util.xml.Dom4jXml
-
- readXML(File) - 类 中的方法me.wuwenbin.tools.util.xml.W3cXml
-
读取解析XML文件
- readXML(String) - 类 中的方法me.wuwenbin.tools.util.xml.W3cXml
-
读取解析XML文件
- REG_ALNUM - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Alphanumeric characters
- REG_ALPHA - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Alphabetic characters
- REG_ASCII - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
ASCII characters
- REG_BLANK - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Space and tab
- REG_CNTRL - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Control characters
- REG_DIGITS - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Digits
- REG_EMAIL - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Email
- REG_FIXED_TELEPHONE - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
国内固定电话
- REG_GRAPH - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
SVisible characters (i.e. anything except spaces, control characters,
etc.)
- REG_HTML - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
HTML
- REG_IDENTIFICATION_CARD - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
身份证编码
- REG_IP - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
i地址
- REG_LEGAL_ACCOUNT - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
合法的名字(字母开头,允许5-16字节,允许字母数字下划线)
- REG_LOWER - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Lowercase letters
- REG_MOBILE_TELEPHONE - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
移动电话
- REG_POSTALCODE - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
邮政编码
- REG_PRINT - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Visible characters and spaces (i.e. anything except control characters,
etc.)
- REG_PUNCT - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Punctuation and symbols.
- REG_SPACE - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
All whitespace characters, including line breaks
- REG_SPACE_LINE - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
空白行
- REG_SPACE_POINT - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
首尾空白字符
- REG_UPPER - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Uppercase letters
- REG_URL - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
URL地址
- REG_XDIGIT - 接口 中的静态变量me.wuwenbin.tools.util.regex.support.RegexConst
-
Hexadecimal digits
- Regex - me.wuwenbin.tools.util.regex中的类
-
ClassName: BnRegexUtils
Description: 封装一些正则相关的操作,使用的时候使用就可以了
Version: Ver 1.0
author: Wuwenbin
date: 2016年8月31日
time: 下午2:15:39
- Regex() - 类 的构造器me.wuwenbin.tools.util.regex.Regex
-
- regex - 接口 中的静态变量me.wuwenbin.tools.util.Util
-
正则表达式
- RegexConst - me.wuwenbin.tools.util.regex.support中的接口
-
created by Wuwenbin on 2017/8/20 at 18:23
- remove(Object[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- remove(boolean[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- remove(byte[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- remove(char[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- remove(double[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- remove(float[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- remove(int[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- remove(long[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- remove(short[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the element at the specified position from the specified array.
- removeAll(String, CharSequence) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
移除字符串中所有给定字符串
例:removeAll("aa-bb-cc-dd", "-") -> aabbccdd
- removeElement(Object[], Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removeElement(boolean[], boolean) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removeElement(byte[], byte) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removeElement(char[], char) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removeElement(double[], double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removeElement(float[], float) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removeElement(int[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removeElement(long[], long) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removeElement(short[], short) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Removes the first occurrence of the specified element from the
specified array.
- removePreAndLowerFirst(String, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
去掉首部指定长度的字符串并将剩余字符串首字母小写
例如:str=setName, preLength=3 -> return name
- removePreAndLowerFirst(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
去掉首部指定长度的字符串并将剩余字符串首字母小写
例如:str=setName, prefix=set -> return name
- removePrefix(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
去掉指定前缀
- removePrefixIgnoreCase(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
忽略大小写去掉指定前缀
- removeSufAndLowerFirst(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
去掉指定后缀,并小写首字母
- removeSuffix(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
去掉指定后缀
- removeSuffixIgnoreCase(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
忽略大小写去掉指定后缀
- repeat(char, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
重复某个字符
- repeat(String, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
重复某个字符串
- reverse(Object[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- reverse(long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- reverse(int[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- reverse(short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- reverse(char[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- reverse(byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- reverse(double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- reverse(float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- reverse(boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Reverses the order of the given array.
- round(double, int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
- round(String, int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
- round(double, int, RoundingMode) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
- round(String, int, RoundingMode) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
- roundStr(double, int) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
保留小数位,采用四舍五入
- safeUnescape(String) - 类 中的方法me.wuwenbin.tools.util.escape.Escape
-
安全的unescape文本,当文本不是被escape的时候,返回原文。
- scan(String, Set<Class<? extends Annotation>>, Set<String>) - 类 中的方法me.wuwenbin.tools.util.clazz.ClassScan
-
扫描获取指定包下符合条件的class类
- SLASH - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- SPACE - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- split(String, char) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
切分字符串
a#b#c -> [a,b,c]
a##b#c -> [a,"",b,c]
- split(String, char, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
切分字符串
- split(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
切分字符串
from jodd
- split(String, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
根据给定长度,将给定字符串截取为多个部分
- splitToArray(String, char) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
切分字符串
- splitToArray(String, char, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
切分字符串
- sqrt(long) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
- startWith(String, String, boolean) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
是否以指定字符串开头
- startWithIgnoreCase(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
是否以指定字符串开头,忽略大小写
- str(Object, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
将对象转为字符串
1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法
- str(Object, Charset) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
将对象转为字符串
1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法
- str(byte[], String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
将byte数组转为字符串
- str(byte[], Charset) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
解码字节码
- str(Byte[], String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
将Byte数组转为字符串
- str(Byte[], Charset) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
解码字节码
- str(ByteBuffer, String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
将编码的byteBuffer数据转换为字符串
- str(ByteBuffer, Charset) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
将编码的byteBuffer数据转换为字符串
- string2Date(String, String) - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- string2Timestamp(String, String) - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- StringConst - me.wuwenbin.tools.util.lang.constant中的接口
-
created by Wuwenbin on 2017/8/20 at 0:06
- stringToDay(String) - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- stringToMonth(String) - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- stringToYear(String) - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- StringX - me.wuwenbin.tools.util.lang中的类
-
字符串工具类,
hutool来源
剔除其他关联类,使得此类尽量可以单独使用,不受其他类限制
剔除了某些不常用的方法,挪移某些方法至更恰当的类中,更易辨析作用
修改以适应
template-xxx系列项目规范
- StringX() - 类 的构造器me.wuwenbin.tools.util.lang.StringX
-
- stringX - 接口 中的静态变量me.wuwenbin.tools.util.Util
-
字符串工具类
- stripSqlInjection(String) - 类 中的方法me.wuwenbin.tools.util.web.WebFireWall
-
- stripSqlXSS(String) - 类 中的方法me.wuwenbin.tools.util.web.WebFireWall
-
- stripXSS(String) - 类 中的方法me.wuwenbin.tools.util.web.WebFireWall
-
- sub(double, double) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
提供精确的减法运算
- sub(String, String) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
提供精确的减法运算
- sub(BigDecimal, BigDecimal) - 类 中的方法me.wuwenbin.tools.util.lang.NumberX
-
提供精确的减法运算
- sub(String, int, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
改进JDK subString
index从0开始计算,最后一个字符为-1
如果from和to位置一样,返回 ""
如果from或to为负数,则按照length从后向前数位置,如果绝对值大于字符串长度,则from归到0,to归到length
如果经过修正的index中from大于to,则互换from和to example:
abcdefgh 2 3 -> c
abcdefgh 2 -3 -> cde
- subarray(Object[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new array containing the elements between
the start and end indices.
- subarray(long[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new long array containing the elements
between the start and end indices.
- subarray(int[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new int array containing the elements
between the start and end indices.
- subarray(short[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new short array containing the elements
between the start and end indices.
- subarray(char[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new char array containing the elements
between the start and end indices.
- subarray(byte[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new byte array containing the elements
between the start and end indices.
- subarray(double[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new double array containing the elements
between the start and end indices.
- subarray(float[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new float array containing the elements
between the start and end indices.
- subarray(boolean[], int, int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Produces a new boolean array containing the elements
between the start and end indices.
- subPre(String, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
切割前部分
- subSuf(String, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
切割后部分
- TAB - 接口 中的静态变量me.wuwenbin.tools.util.lang.constant.StringConst
-
- TextConst - me.wuwenbin.tools.util.lang.constant中的接口
-
created by Wuwenbin on 2017/8/20 at 0:07
- timestamp2String(Timestamp, String) - 类 中的方法me.wuwenbin.tools.util.web.WebDate
-
- toCamelCase(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
将下划线方式命名的字符串转换为驼峰式。
- toMap(Object[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts the given array into a
Map.
- toObject(char[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of primitive chars to objects.
- toObject(long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of primitive longs to objects.
- toObject(int[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of primitive ints to objects.
- toObject(short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of primitive shorts to objects.
- toObject(byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of primitive bytes to objects.
- toObject(double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of primitive doubles to objects.
- toObject(float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of primitive floats to objects.
- toObject(boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of primitive booleans to objects.
- toPrimitive(Character[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Characters to primitives.
- toPrimitive(Character[], char) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Character to primitives handling null.
- toPrimitive(Long[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Longs to primitives.
- toPrimitive(Long[], long) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Long to primitives handling null.
- toPrimitive(Integer[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Integers to primitives.
- toPrimitive(Integer[], int) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Integer to primitives handling null.
- toPrimitive(Short[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Shorts to primitives.
- toPrimitive(Short[], short) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Short to primitives handling null.
- toPrimitive(Byte[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Bytes to primitives.
- toPrimitive(Byte[], byte) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Bytes to primitives handling null.
- toPrimitive(Double[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Doubles to primitives.
- toPrimitive(Double[], double) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Doubles to primitives handling null.
- toPrimitive(Float[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Floats to primitives.
- toPrimitive(Float[], float) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Floats to primitives handling null.
- toPrimitive(Boolean[]) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Booleans to primitives.
- toPrimitive(Boolean[], boolean) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
Converts an array of object Booleans to primitives handling null.
- toString(Object) - 类 中的方法me.wuwenbin.tools.util.lang.ArrayX
-
数组或集合转String
- toUnderlineCase(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
将驼峰式命名的字符串转换为下划线方式。
- transElements(NodeList) - 类 中的方法me.wuwenbin.tools.util.xml.W3cXml
-
将NodeList转换为Element列表
- transElements(Element, NodeList) - 类 中的方法me.wuwenbin.tools.util.xml.W3cXml
-
将NodeList转换为Element列表
- trim(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
除去字符串头尾部的空白,如果字符串是null,依然返回null。
- trim(String[]) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
给定字符串数组全部做去首尾空格
- trim(String, int) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
除去字符串头尾部的空白符,如果字符串是null,依然返回null。
- trimEnd(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
除去字符串尾部的空白,如果字符串是null,则返回null。
- trimStart(String) - 类 中的方法me.wuwenbin.tools.util.lang.StringX
-
除去字符串头部的空白,如果字符串是null,则返回null。