public class IntArray2IntegerArrayList
extends java.lang.Object
int
numbers into array list with Integer
elements.
This class cashes converted arrays along with corresponding array lists.
If conversion for the same array (in the sense of reference) is required once more, then cashed array list is returned.Constructor | Description |
---|---|
IntArray2IntegerArrayList() |
Modifier and Type | Method | Description |
---|---|---|
static void |
clear() |
Clears cache.
|
static java.util.ArrayList<java.lang.Integer> |
convert(int[] intArray) |
Converts given array with
int numbers into array list with Integer elements |
public static java.util.ArrayList<java.lang.Integer> convert(int[] intArray)
int
numbers into array list with Integer
elementsintArray
- array with int
numbersInteger
elements resulting from conversion of given array
with int
numberspublic static void clear()