Package org.apache.juneau.commons.function


package org.apache.juneau.commons.function
Functional programming utilities including enhanced function interfaces, consumers, suppliers, tuples, and exception-handling variants.
  • Class
    Description
    A functional interface representing an operation that accepts two arguments and returns no result.
    Consumer3<A,B,C>
    A functional interface representing an operation that accepts three arguments and returns no result.
    Consumer4<A,B,C,D>
    A functional interface representing an operation that accepts four arguments and returns no result.
    Consumer5<A,B,C,D,E>
    A functional interface representing an operation that accepts five arguments and returns no result.
    Function2<A,B,R>
    A functional interface representing a function that accepts two arguments and produces a result.
    Function3<A,B,C,R>
    A functional interface representing a function that accepts three arguments and produces a result.
    Function4<A,B,C,D,R>
    A functional interface representing a function that accepts four arguments and produces a result.
    Function5<A,B,C,D,E,R>
    A functional interface representing a function that accepts five arguments and produces a result.
    Combines the features of Supplier and Optional into a single class.
    A thread-safe supplier that caches the result of the first call and supports resetting the cache.
    A functional interface identical to Runnable but allows the Snippet.run() method to throw checked exceptions.
    A functional interface representing an operation that accepts a single argument, returns no result, and may throw a checked exception.
    A functional interface representing an operation that accepts two arguments, returns no result, and may throw a checked exception.
    A functional interface representing an operation that accepts three arguments, returns no result, and may throw a checked exception.
    A functional interface representing an operation that accepts four arguments, returns no result, and may throw a checked exception.
    A functional interface representing an operation that accepts five arguments, returns no result, and may throw a checked exception.
    A functional interface representing a function that accepts one argument, produces a result, and may throw a checked exception.
    A functional interface representing a function that accepts two arguments, produces a result, and may throw a checked exception.
    A functional interface representing a function that accepts three arguments, produces a result, and may throw a checked exception.
    A functional interface representing a function that accepts four arguments, produces a result, and may throw a checked exception.
    ThrowingFunction5<A,B,C,D,E,R>
    A functional interface representing a function that accepts five arguments, produces a result, and may throw a checked exception.
    A functional interface representing a supplier of results that may throw a checked exception.
    Represents an immutable tuple containing a single value.
    Tuple2<A,B>
    Represents an immutable tuple containing two values.
    Tuple3<A,B,C>
    Represents a simple tuple of 3 objects.
    Tuple4<A,B,C,D>
    Represents a simple tuple of 4 objects.
    Tuple5<A,B,C,D,E>
    Represents a simple tuple of 5 objects.