public class CollectionsUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<Character> |
arrayToSet(char... array)
Converts an array of chars to a Set of Characters.
|
static Set<Character> |
arrayToUnmodifiableSet(char... array)
Convert a char array to a unmodifiable Set.
|
static char[] |
strToChars(String str)
Convert a String to a char array
|
static Set<Character> |
strToSet(String str)
Convert a String to a set of characters.
|
static Set<Character> |
strToUnmodifiableSet(String str)
Convert a String to a unmodifiable set of characters.
|
public static Set<Character> arrayToSet(char... array)
array - the contents of the new Setpublic static Set<Character> arrayToUnmodifiableSet(char... array)
array - the contents of the new Setpublic static char[] strToChars(String str)
str - The string to convertpublic static Set<Character> strToSet(String str)
str - The string to convertCopyright © 2017. All rights reserved.