public class StringHelper extends Object
| Constructor and Description |
|---|
StringHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
join(Collection<?> items,
String delimiter)
Join a collection of objects to a string using a delimiter.
|
static String |
join(Collection<?> items,
String delimiter,
Apply<String> toApply) |
static String |
join(Object[] items,
String delimiter)
Join a collection of objects to a string using a delimiter.
|
static String |
toHex(byte[] data)
Convert byte array to hex string
|
static String |
toLowerFirst(String text)
Make the first character of a string lowercase
|
static String |
toUpperFirst(String text)
Make the first character of a string uppercase
|
public static String join(Collection<?> items, String delimiter)
Object.toString() result of each
collection
member and add it to the result string. Delimiters are only placed
between
elementsitems - The items to convertdelimiter - the delimiter to usepublic static String join(Collection<?> items, String delimiter, Apply<String> toApply)
public static String join(Object[] items, String delimiter)
Object.toString() result of each
collection
member and add it to the result string. Delimiters are only placed
between
elementsitems - The items to convertdelimiter - the delimiter to usepublic static String toUpperFirst(String text)
text - the string, may be nullnull if the input was
nullpublic static String toLowerFirst(String text)
text - the string, may be nullnull if the input was
nullpublic static String toHex(byte[] data)
data - the data to convertCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.