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 null
null
if the suppliers
array was null
public static Object get(Supplier<?> supplier)
#getFormattedMessage
on that Message.supplier
- a lambda expression or null
null
if the supplier
was null
public static Message get(MessageSupplier supplier)
supplier
- a lambda expression or null
null
if the supplier was
null
public static Message getMessage(Supplier<?> supplier, MessageFactory messageFactory)
supplier
- a lambda expression or null
Copyright © 1999-2017. 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.