WangHan
2024-09-12 d5855a4926926698b740bc6c7ba489de47adb68b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package tech.powerjob.common.utils;
 
/**
 * Represents a supplier of results.
 *
 * <p>There is no requirement that a new or distinct result be returned each
 * time the supplier is invoked.
 *
 * <p>This is a <a href="package-summary.html">functional interface</a>
 * whose functional method is {@link #get()}.
 *
 * @param <T> the type of results supplied by this supplier
 *
 * @author tjq
 * @since 2020/3/26
 */
@FunctionalInterface
public interface SupplierPlus<T> {
 
    /**
     * Gets a result.
     * @return a result
     * @throws Exception allow to throw Exception
     */
    T get() throws Exception;
}