| 程序包 | 说明 |
|---|---|
| com.github.jarvisframework.tool.core.collection | |
| com.github.jarvisframework.tool.core.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> int |
CollectionUtils.count(Iterable<T> iterable,
Matcher<T> matcher)
集合中匹配规则的数量
|
static <T> int[] |
CollectionUtils.indexOfAll(Collection<T> collection,
Matcher<T> matcher)
获取匹配规则定义中匹配到元素的所有位置
此方法对于某些无序集合的位置信息,以转换为数组后的位置为准。 |
static <T> int[] |
ListUtils.indexOfAll(List<T> list,
Matcher<T> matcher)
获取匹配规则定义中匹配到元素的所有位置
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
StringUtils.isAllCharMatch(CharSequence value,
Matcher<Character> matcher)
字符串的每一个字符是否都与定义的匹配器匹配
|
Copyright © 2020. All rights reserved.