This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new 7c99d624a Javadoc 7c99d624a is described below commit 7c99d624aa87ff8fa1424f41968cbb72bb6dfa0f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Apr 25 08:40:06 2024 -0400 Javadoc --- .../commons/lang3/stream/LangCollectors.java | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/stream/LangCollectors.java b/src/main/java/org/apache/commons/lang3/stream/LangCollectors.java index 0bcbfe22d..b52f8da84 100644 --- a/src/main/java/org/apache/commons/lang3/stream/LangCollectors.java +++ b/src/main/java/org/apache/commons/lang3/stream/LangCollectors.java @@ -162,28 +162,27 @@ public final class LangCollectors { } /** - * Returns a {@code Collector} that concatenates the input elements, separated by the specified delimiter, with the - * specified prefix and suffix, in encounter order. + * Returns a {@code Collector} that concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in + * encounter order. * <p> - * This is a variation of {@link Collectors#joining(CharSequence, CharSequence, CharSequence)} that works with any - * element class, not just {@code CharSequence}. + * This is a variation of {@link Collectors#joining(CharSequence, CharSequence, CharSequence)} that works with any element class, not just + * {@code CharSequence}. * </p> * <p> * For example: * </p> * - * <pre> + * <pre>{@code * Stream.of(Long.valueOf(1), null, Long.valueOf(3)) - * .collect(LangCollectors.joining("-", "[", "]", o -> Objects.toString(o, "NUL"))) + * .collect(LangCollectors.joining("-", "[", "]", o -> Objects.toString(o, "NUL"))) * returns "[1-NUL-3]" - * </pre> + * }</pre> * * @param delimiter the delimiter to be used between each element - * @param prefix the sequence of characters to be used at the beginning of the joined result - * @param suffix the sequence of characters to be used at the end of the joined result - * @param toString A function that takes an Object and returns a non-null String. - * @return A {@code Collector} which concatenates CharSequence elements, separated by the specified delimiter, in - * encounter order + * @param prefix the sequence of characters to be used at the beginning of the joined result + * @param suffix the sequence of characters to be used at the end of the joined result + * @param toString A function that takes an Object and returns a non-null String. + * @return A {@code Collector} which concatenates CharSequence elements, separated by the specified delimiter, in encounter order */ public static Collector<Object, ?, String> joining(final CharSequence delimiter, final CharSequence prefix, final CharSequence suffix, final Function<Object, String> toString) {