Interface SupplierX<R>

Type Parameters:
R - 返回值类型
All Superinterfaces:
Serializable, Supplier<R>
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 SupplierX<R> extends Supplier<R>, Serializable
可序列化的Supplier
Since:
Java 17+
Author:
Kimi Liu
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    get()
    Gets a result.
    Gets a result.
    static <T> SupplierX<T>
    last(SupplierX<T>... serSups)
    last
  • Method Details

    • last

      @SafeVarargs static <T> SupplierX<T> last(SupplierX<T>... serSups)
      last
      Type Parameters:
      T - type
      Parameters:
      serSups - lambda
      Returns:
      lambda
    • getting

      R getting() throws Throwable
      Gets a result.
      Returns:
      a result
      Throws:
      Exception - wrapped checked exception
      Throwable
    • get

      default R get()
      Gets a result.
      Specified by:
      get in interface Supplier<R>
      Returns:
      a result