public class DelimitedStringSplitJoin extends Object
| Constructor and Description |
|---|
DelimitedStringSplitJoin()
Create a DelimitedStringSplitJoin object with the default delimiter (:)
and escape character (\).
|
DelimitedStringSplitJoin(char delimiter,
char escape)
Create a DelimitedStringSplitJoin object with the specified delimiter and
escape character
|
| Modifier and Type | Method and Description |
|---|---|
String |
join(CharSequence[] input)
Join a string array into a single string, using the specified delimiter
characters.
|
String |
join(Iterable<? extends CharSequence> input)
Join a collection if strings into a single string, using the specified
delimiter and escape characters.
|
Collector<CharSequence,?,String> |
joining()
Returns a Collector that concatenates the input elements into a String,
in encounter order using the specified delimited and escape characters.
|
String[] |
split(CharSequence input)
Split a single string into a string array, using the specified delimiter
characters.
|
Map<String,String> |
zip(CharSequence keys,
CharSequence values)
Split a set of keys and values, and zip them to create a Map.
|
public DelimitedStringSplitJoin()
public DelimitedStringSplitJoin(char delimiter,
char escape)
delimiter - The delimiter character to useescape - The escape character to usepublic String[] split(CharSequence input)
input - The string to be splitpublic String join(CharSequence[] input)
input - The input string arraypublic String join(Iterable<? extends CharSequence> input)
input - The collection of stringspublic Collector<CharSequence,?,String> joining()
public Map<String,String> zip(CharSequence keys, CharSequence values)
keys - values - Copyright © 2021 LSST. All rights reserved.