public class Strings extends Object
Modifier and Type | Method and Description |
---|---|
static List<Character> |
transform(char[] str)
Returns the characters of the given array as a list.
|
static List<List<Character>> |
transform(char[][] strs)
Returns a list, containing a list of characters for each of the given character arrays.
|
static List<List<Character>> |
transform(List<String> strs)
Returns a list, containing a list of characters for each of the given strings.
|
static List<Character> |
transform(String str)
Returns the characters of the given string as a list.
|
static List<List<Character>> |
transform(String[] strs)
Returns a list, containing a list of characters for each of the given strings.
|
public static List<Character> transform(@NonNull String str)
str
- a string.public static List<Character> transform(@NonNull char[] str)
str
- a character array.public static List<List<Character>> transform(@NonNull String[] strs)
strs
- an array of strings.public static List<List<Character>> transform(@NonNull List<String> strs)
strs
- a list of strings.Copyright (C) 2016 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/