public interface FormattingTupleWrapper
Wraps a formatting tuple object from SLF4J simplifying messages.
| Modifier and Type | Method and Description |
|---|---|
static FormattingTupleWrapper |
create(String msg)
Creates a new wrapper.
|
static FormattingTupleWrapper |
create(String msg,
Object... obj)
Creates a new wrapper.
|
default String |
getMessage()
Returns the formatted (rendered) message using the set formatting tuple.
|
FormattingTuple |
getTuple()
Returns the set formatting tuple.
|
FormattingTuple getTuple()
Returns the set formatting tuple.
default String getMessage()
Returns the formatted (rendered) message using the set formatting tuple.
static FormattingTupleWrapper create(String msg)
Creates a new wrapper.
msg - the message for the wrapper, should not be blankNullPointerException - if msg was nullIllegalArgumentException - if msg was blankstatic FormattingTupleWrapper create(String msg, Object... obj)
Creates a new wrapper.
msg - the message for the wrapper, should not be blankobj - the elements for the message, should not be null and have no null elementsNullPointerException - if msg or obj was nullIllegalArgumentException - if msg was blank or obj contained null elementsCopyright © 2016–2017. All rights reserved.