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