Package bm.util
Class StringLister
Deprecated.
Fluent api to build up a List of String from various ingredients. The list is
constructed in place, using an ArrayList internally.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.addJoined(String joiner, Collection<String> args) Deprecated.Joins a collections and adds it to the list<T> StringListeraddJoined(Function<T, String> mapper, String joiner, Collection<T> args) Deprecated.Joins collection elements after mapping them and adds the result to this list.
-
Constructor Details
-
StringLister
Deprecated.Creates an initial list.- Parameters:
elements- initial list elements
-
-
Method Details
-
add
Deprecated. -
addJoined
Deprecated.Joins a collections and adds it to the list- Parameters:
joiner- separater to join the elementsargs- to join- Returns:
this
-
addJoined
Deprecated.Joins collection elements after mapping them and adds the result to this list.- Type Parameters:
T- type of the elements in the collection- Parameters:
mapper- to map elements of the given collectionjoiner- to join the resulting stringsargs- the elements to join- Returns:
this
-
return thisin a superclass function returns the wrong type, namelyLister<String>notStringLister.