public final class LambdaUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Message |
get(MessageSupplier supplier)
Returns the Message supplied by the specified function.
|
static Object |
get(Supplier<?> supplier)
Returns the result of evaluating the specified function.
|
static Object[] |
getAll(Supplier<?>... suppliers)
Converts an array of lambda expressions into an array of their evaluation results.
|
static Message |
getMessage(Supplier<?> supplier,
MessageFactory messageFactory)
Returns a Message, either the value supplied by the specified function, or a new Message created by the specified
Factory.
|
public static Object[] getAll(Supplier<?>... suppliers)
suppliers - an array of lambda expressions or nullnull if the suppliers
array was nullpublic static Object get(Supplier<?> supplier)
#getFormattedMessage on that Message.supplier - a lambda expression or nullnull if the supplier
was nullpublic static Message get(MessageSupplier supplier)
supplier - a lambda expression or nullnull if the supplier was
nullpublic static Message getMessage(Supplier<?> supplier, MessageFactory messageFactory)
supplier - a lambda expression or nullCopyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.