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