/** * Creates a new <code>THashSet</code> instance containing the * elements of <tt>collection</tt>. * * @param collection a <code>Collection</code> value */ public TCustomHashSet( HashingStrategy<? super E> strategy, Collection<? extends E> collection ) { this( strategy, collection.size() ); addAll( collection ); }
/** * Creates a new <code>THashSet</code> instance containing the * elements of <tt>collection</tt>. * * @param collection a <code>Collection</code> value */ public TCustomHashSet( HashingStrategy<? super E> strategy, Collection<? extends E> collection ) { this( strategy, collection.size() ); addAll( collection ); }
/** * Creates a new <code>THashSet</code> instance containing the * elements of <tt>collection</tt>. * * @param collection a <code>Collection</code> value */ public TCustomHashSet( HashingStrategy<E> strategy, Collection<? extends E> collection ) { this( strategy, collection.size() ); addAll( collection ); }
/** * Creates a new <code>THashSet</code> instance containing the * elements of <tt>collection</tt>. * * @param collection a <code>Collection</code> value */ public TCustomHashSet( HashingStrategy<? super E> strategy, Collection<? extends E> collection ) { this( strategy, collection.size() ); addAll( collection ); }
/** * Creates a new <code>THashSet</code> instance containing the * elements of <tt>collection</tt>. * * @param collection a <code>Collection</code> value */ public TCustomHashSet( HashingStrategy<? super E> strategy, Collection<? extends E> collection ) { this( strategy, collection.size() ); addAll( collection ); }