Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FixedSizeHashBucket" /> class.
 /// </summary>
 /// <param name="capacity">The capacity.</param>
 /// <param name="comparer">The comparer.</param>
 public FixedSizeSetBucket(int capacity, IEqualityComparer <T> comparer)
 {
     _capacity = NumericHelper.NextPowerOf2(capacity);
     _entries  = new Bucket <T>(_capacity);
     _comparer = comparer ?? EqualityComparer <T> .Default;
 }