public static class StringHelper.ImploderBuilder extends Object implements IBuilder<String>
| Constructor and Description |
|---|
ImploderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
String |
build()
Build the object
|
StringHelper.ImploderBuilder |
filter(Predicate<String> a) |
StringHelper.ImploderBuilder |
filterNonEmpty() |
StringHelper.ImploderBuilder |
length(int n)
Set the number of source items to iterate, depending on the source
offset.
|
StringHelper.ImploderBuilder |
offset(int n)
Set an offset of the source from which to start.
|
StringHelper.ImploderBuilder |
separator(char c) |
StringHelper.ImploderBuilder |
separator(String s) |
StringHelper.ImploderBuilder |
source(Iterable<?> a) |
<T> StringHelper.ImploderBuilder |
source(Iterable<T> a,
Function<? super T,String> aMapper) |
StringHelper.ImploderBuilder |
source(String... a) |
<T> StringHelper.ImploderBuilder |
source(T... a) |
<T> StringHelper.ImploderBuilder |
source(T[] a,
Function<? super T,String> aMapper) |
@Nonnull public StringHelper.ImploderBuilder source(@Nullable Iterable<?> a)
@Nonnull public <T> StringHelper.ImploderBuilder source(@Nullable Iterable<T> a, @Nonnull Function<? super T,String> aMapper)
@Nonnull public StringHelper.ImploderBuilder source(@Nullable String... a)
@Nonnull @SafeVarargs public final <T> StringHelper.ImploderBuilder source(@Nullable T... a)
@Nonnull public <T> StringHelper.ImploderBuilder source(@Nullable T[] a, @Nonnull Function<? super T,String> aMapper)
@Nonnull public StringHelper.ImploderBuilder separator(char c)
@Nonnull public StringHelper.ImploderBuilder separator(@Nullable String s)
@Nonnull public StringHelper.ImploderBuilder offset(int n)
n - The offset to use@Nonnull public StringHelper.ImploderBuilder length(int n)
n - The length to use@Nonnull public StringHelper.ImploderBuilder filterNonEmpty()
@Nonnull public StringHelper.ImploderBuilder filter(@Nullable Predicate<String> a)
Copyright © 2014–2022 Philip Helger. All rights reserved.