public interface MessageBuilder
MessageBuilderFactory| Modifier and Type | Method and Description |
|---|---|
MessageBuilder |
a(char[] value)
Append content to the message buffer.
|
MessageBuilder |
a(char[] value,
int offset,
int len)
Append content to the message buffer.
|
MessageBuilder |
a(CharSequence value)
Append content to the message buffer.
|
MessageBuilder |
a(CharSequence value,
int start,
int end)
Append content to the message buffer.
|
MessageBuilder |
a(Object value)
Append content to the message buffer.
|
String |
build()
Return the built message.
|
MessageBuilder |
failure(Object message)
Append message content in failure style.
|
MessageBuilder |
format(String pattern,
Object... args)
Append formatted content to the buffer.
|
MessageBuilder |
mojo(Object message)
Append message content in mojo style.
|
MessageBuilder |
newline()
Append newline to the message buffer.
|
MessageBuilder |
project(Object message)
Append message content in project style.
|
MessageBuilder |
strong(Object message)
Append message content in strong style.
|
MessageBuilder |
success(Object message)
Append message content in success style.
|
MessageBuilder |
warning(Object message)
Append message content in warning style.
|
@Nonnull MessageBuilder success(Object message)
message - the message to append@Nonnull MessageBuilder warning(Object message)
message - the message to append@Nonnull MessageBuilder failure(Object message)
message - the message to append@Nonnull MessageBuilder strong(Object message)
message - the message to append@Nonnull MessageBuilder mojo(Object message)
message - the message to append@Nonnull MessageBuilder project(Object message)
message - the message to append@Nonnull MessageBuilder a(char[] value, int offset, int len)
value - the content to appendoffset - the index of the first char to appendlen - the number of chars to append@Nonnull MessageBuilder a(char[] value)
value - the content to append@Nonnull MessageBuilder a(CharSequence value, int start, int end)
value - the content to appendstart - the starting index of the subsequence to be appendedend - the end index of the subsequence to be appended@Nonnull MessageBuilder a(CharSequence value)
value - the content to append@Nonnull MessageBuilder a(Object value)
value - the content to append@Nonnull MessageBuilder newline()
@Nonnull MessageBuilder format(String pattern, Object... args)
pattern - a format stringargs - arguments referenced by the format specifiers in the format string.String.format(String, Object...)Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.