| Package | Description |
|---|---|
| org.aoju.bus.core.lang |
| Modifier and Type | Method and Description |
|---|---|
V |
SimpleCache.get(K key,
Func.Func0<V> supplier)
从缓存中获得对象,当对象不在缓存中或已经过期返回Func0回调产生的对象
|
static <X extends Throwable> |
Assert.isTrue(boolean expression,
Func.Func0<? extends X> supplier)
断言是否为真,如果为
false 抛出给定的异常
Assert.isTrue(i > 0, IllegalArgumentException::new); |
Copyright © 2020. All rights reserved.