Interface SupplierEx<T>

  • Type Parameters:
    T - the type of results supplied by this supplier
    All Superinterfaces:
    com.hazelcast.security.impl.function.SecuredFunction, java.io.Serializable, java.util.function.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 SupplierEx<T>
    extends java.util.function.Supplier<T>, java.io.Serializable, com.hazelcast.security.impl.function.SecuredFunction
    Serializable variant of java.util.function.Supplier which declares checked exception.
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default <V> SupplierEx<V> andThen​(FunctionEx<? super T,​? extends V> after)
      Serializable analogue of java.util.function.Function#andThen(Function).
      default T get()  
      T getEx()
      Exception-declaring version of Supplier.get().
      • Methods inherited from interface com.hazelcast.security.impl.function.SecuredFunction

        permissions
    • Method Detail

      • getEx

        T getEx()
         throws java.lang.Exception
        Exception-declaring version of Supplier.get().
        Throws:
        java.lang.Exception - in case of any exceptional case
      • get

        default T get()
        Specified by:
        get in interface java.util.function.Supplier<T>
      • andThen

        default <V> SupplierEx<V> andThen​(FunctionEx<? super T,​? extends V> after)
        Serializable analogue of java.util.function.Function#andThen(Function).
        Type Parameters:
        V - the type of output of the after function, and of the composed function
        Since:
        5.4