public class Booleans extends Object
Modifier and Type | Method and Description |
---|---|
static List<List<Boolean>> |
transform(boolean[][] mat)
Returns a list of lists of Booleans, one list per row in the given matrix.
|
static List<List<Boolean>> |
transform(List<boolean[]> lst)
Returns a list of lists of Booleans, one list per boolean array in the given list.
|
static List<List<Boolean>> |
transformObjects(Object[] arr)
Returns a list of lists of integers, one for each object in the given array.
|
static List<Boolean> |
transformSingle(boolean[] arr)
Returns the Booleans contained in the given array as a list.
|
public static List<Boolean> transformSingle(@NonNull boolean[] arr)
arr
- an array of booleans.public static List<List<Boolean>> transform(@NonNull boolean[][] mat)
mat
- a matrix of booleans.public static List<List<Boolean>> transform(@NonNull List<boolean[]> lst)
lst
- a list of boolean arrays.public static List<List<Boolean>> transformObjects(@NonNull Object[] arr)
arr
- an object array containing one sequence per entry. So each entry is expected to be
a java string or a character array.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/