Lines Matching defs:list
71 * @param list Source list of strings
72 * @param convertFrom Conversion list of strings
73 * @param convertTo Conversion list of ints
75 * or {@code null} if {@code list} was {@code null}
78 List<String> list, String[] convertFrom, int[] convertTo) {
79 if (list == null) {
83 List<Integer> convertedList = convertStringListToIntList(list, convertFrom, convertTo);
101 * @param list Source list of strings
102 * @param convertFrom Conversion list of strings
103 * @param convertTo Conversion list of ints
104 * @return A list of ints where the values correspond to the ones in {@code convertTo}
105 * or {@code null} if {@code list} was {@code null}
108 List<String> list, String[] convertFrom, int[] convertTo) {
109 if (list == null) {
113 List<Integer> convertedList = new ArrayList<>(list.size());
115 for (String str : list) {
134 * Convert the list of integers in {@code list} to an {@code int} array.
136 * <p>Every element in {@code list} must be non-{@code null}.</p>
138 * @param list a list of non-{@code null} integers
140 * @return a new int array containing all the elements from {@code list}
142 * @throws NullPointerException if any of the elements in {@code list} were {@code null}
144 public static int[] toIntArray(List<Integer> list) {
145 if (list == null) {
149 int[] arr = new int[list.size()];
151 for (int elem : list) {