List of utility methods to do Array to ArrayList
ArrayList | byteArrayToArrayList(byte[] byteArray) Converts the given array of bytes into a Java ArrayList return byteArrayToArrayList(byteArray, 0);
|
ArrayList | byteArrayToShortArrayList(byte[] byteArray) byte Array To Short Array List ArrayList<Short> temp = new ArrayList<Short>(); for (int i = 0; i < byteArray.length; i = i + 1000) { temp.add((short) byteArray[i]); return temp; |
ArrayList | toArrayList(Iterable extends T> iterable) to Array List ArrayList<T> list = new ArrayList<>(); for (T t : iterable) list.add(t); return list; |
ArrayList | toArrayList(Collection to Array List if (collection == null) { return null; ArrayList<T> out = null; if (collection instanceof ArrayList<?>) { out = (ArrayList<T>) collection; } else { out = new ArrayList<T>(collection); ... |
ArrayList | toArrayList(Collection Convert a Collection to ArrayList if (from instanceof ArrayList) return (ArrayList<T>) from; return new ArrayList<T>(from); |
ArrayList | toArrayList(double[] dd) to Array List ArrayList v = new ArrayList(dd.length); for (int i = 0; i < dd.length; i++) { v.add(dd[i]); return v; |
ArrayList | toArrayList(final T... array) to Array List final ArrayList<T> retValue = new ArrayList<T>(); for (final T item : array) retValue.add(item); return retValue; |
ArrayList | toArrayList(int[] p) to Array List ArrayList<Integer> ret = new ArrayList<>(); for (int i = 0; i < p.length; i++) { ret.add(i); return ret; |
ArrayList | toArrayList(int[] values) to Array List ArrayList<Integer> ar = new ArrayList<Integer>(); for (int i = 0; i < values.length; i++) ar.add(values[i]); return ar; |
List | toArrayList(List to Array List List<Integer> items = new ArrayList<Integer>(); if (list != null && list.size() > 0) { for (String item : list) { items.add(Integer.valueOf(item)); return items; |