Interface XSupplier<T>

Type Parameters:
T - 结果类型
All Superinterfaces:
Serializable, Supplier<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface XSupplier<T> extends Supplier<T>, Serializable
结果提供者
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    get()
    获取结果
    获取结果
    static <T> XSupplier<T>
    last(XSupplier<T>... args)
    last
  • Method Details

    • last

      @SafeVarargs static <T> XSupplier<T> last(XSupplier<T>... args)
      last
      Type Parameters:
      T - 结果类型
      Parameters:
      args - 参数信息
      Returns:
      the object
    • getting

      T getting() throws Exception
      获取结果
      Returns:
      结果信息
      Throws:
      Exception - 包装的检查异常
    • get

      default T get()
      获取结果
      Specified by:
      get in interface Supplier<T>
      Returns:
      结果信息