public class Integers extends Object
Modifier and Type | Method and Description |
---|---|
static List<List<Integer>> |
transform(int[][] mat)
Returns a list of lists of Integers, one list per row in the given matrix.
|
static List<List<Integer>> |
transform(List<int[]> lst)
Returns a list of lists of Integers, one list per integer array in the given list.
|
static List<List<Integer>> |
transformObjects(Object[] arr)
Returns a list of lists of integers, one for each object in the given array.
|
static List<Integer> |
transformSingle(byte[] arr)
Returns the integers contained in the given array as a list.
|
static List<Integer> |
transformSingle(Byte[] arr)
Returns the integers contained in the given array as a list.
|
static List<Integer> |
transformSingle(char[] arr)
Returns the integers contained in the given array as a list.
|
static List<Integer> |
transformSingle(Character[] arr)
Returns the integers contained in the given array as a list.
|
static List<Integer> |
transformSingle(int[] arr)
Returns the integers contained in the given array as a list.
|
static List<Integer> |
transformSingle(Integer[] arr)
Returns the integers contained in the given array as a list.
|
static List<Integer> |
transformSingle(short[] arr)
Returns the integers contained in the given array as a list.
|
static List<Integer> |
transformSingle(Short[] arr)
Returns the integers contained in the given array as a list.
|
public static List<Integer> transformSingle(@NonNull int[] arr)
arr
- an array of integers.public static List<Integer> transformSingle(@NonNull short[] arr)
arr
- an array of integers.public static List<Integer> transformSingle(@NonNull char[] arr)
arr
- an array of integers.public static List<Integer> transformSingle(@NonNull byte[] arr)
arr
- an array of integers.public static List<Integer> transformSingle(@NonNull Integer[] arr)
arr
- an array of integers.public static List<Integer> transformSingle(@NonNull Short[] arr)
arr
- an array of integers.public static List<Integer> transformSingle(@NonNull Character[] arr)
arr
- an array of integers.public static List<Integer> transformSingle(@NonNull Byte[] arr)
arr
- an array of integers.public static List<List<Integer>> transform(@NonNull int[][] mat)
mat
- a matrix of integers.public static List<List<Integer>> transform(@NonNull List<int[]> lst)
lst
- a list of integer arrays.public static List<List<Integer>> 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/