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