/** * Creates a new <code>TIntHashSet</code> instance containing the elements of <tt>array</tt>. * * @param array an array of <code>int</code> primitives */ public TIntHashSet(int[] array) { this(array.length); addAll(array); }
/** * Creates a new <code>TIntHashSet</code> instance containing the elements of <tt>array</tt>. * * @param array an array of <code>int</code> primitives * @param strategy used to compute hash codes and to compare keys. */ public TIntHashSet(int[] array, TIntHashingStrategy strategy) { this(array.length, strategy); addAll(array); }