| 程序包 | 说明 |
|---|---|
| cn.gongler.util |
工具类
ococo-util8.jar, for Java8
2018.04.25 新增Util.parseUnsignedLong, toUnsignString()
2017.10.27 Util.LineComparator() 排序从前后缀方式替换成分段式排序。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T[] |
GonglerUtil.newArray(Class<T> aClass,
int size,
ExceptionIntFunction<T> func) |
static <T> List<T> |
GonglerUtil.newList(int size,
ExceptionIntFunction<T> func) |
static <R> R |
GonglerUtil.RetryTimes(int times,
ExceptionIntFunction<R> task)
如果遇到异常,则重新尝试不超过限定的次数。
|
Copyright © 2022. All rights reserved.