Interface FunctionEx<T,​R>

  • Type Parameters:
    T - the type of the input to the function
    R - the type of the result of the function
    All Superinterfaces:
    java.util.function.Function<T,​R>, com.hazelcast.security.impl.function.SecuredFunction, java.io.Serializable
    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 FunctionEx<T,​R>
    extends java.util.function.Function<T,​R>, java.io.Serializable, com.hazelcast.security.impl.function.SecuredFunction
    Serializable variant of java.util.function.Function which declares checked exception.
    Since:
    4.0
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default <V> FunctionEx<T,​V> andThen​(FunctionEx<? super R,​? extends V> after)
      Serializable variant of java.util.function.Function#andThen(Function).
      default R apply​(T t)  
      R applyEx​(T t)
      Exception-declaring version of Function.apply(T).
      default <V> FunctionEx<V,​R> compose​(FunctionEx<? super V,​? extends T> before)
      Serializable variant of java.util.function.Function#compose(Function).
      static <T> FunctionEx<T,​T> identity()
      Serializable variant of java.util.function.Function#identity().
      • Methods inherited from interface java.util.function.Function

        andThen, compose
      • Methods inherited from interface com.hazelcast.security.impl.function.SecuredFunction

        permissions
    • Method Detail

      • applyEx

        R applyEx​(T t)
           throws java.lang.Exception
        Exception-declaring version of Function.apply(T).
        Throws:
        java.lang.Exception - in case of any exceptional case
      • apply

        default R apply​(T t)
        Specified by:
        apply in interface java.util.function.Function<T,​R>
      • identity

        static <T> FunctionEx<T,​T> identity()
        Serializable variant of java.util.function.Function#identity().
        Type Parameters:
        T - the type of the input and output objects to the function
      • compose

        default <V> FunctionEx<V,​R> compose​(FunctionEx<? super V,​? extends T> before)
        Serializable variant of java.util.function.Function#compose(Function).
        Type Parameters:
        V - the type of input to the before function, and to the composed function
      • andThen

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