Esempio n. 1
0
 public TempHashMap(int initialCapacity, float loadFactor, CreateEntryDelegate createEntryDelegate, EqualsKeysDelegate equalsKeysDelegate, ExtractHashDelegate equalsHashDelegate,
                    SetNextEntryDelegate setNextEntryDelegate, SetValueForEntryDelegate setValueForEntryDelegate)
     : base(initialCapacity, loadFactor)
 {
     this.createEntryDelegate      = createEntryDelegate;
     this.equalsKeysDelegate       = equalsKeysDelegate;
     this.extractHashDelegate      = equalsHashDelegate;
     this.setNextEntryDelegate     = setNextEntryDelegate;
     this.setValueForEntryDelegate = setValueForEntryDelegate;
 }
Esempio n. 2
0
 public TempHashSet(int initialCapacity, float loadFactor, EqualsKeysDelegate equalsKeysDelegate, ExtractHashDelegate equalsHashDelegate)
     : base(initialCapacity, loadFactor)
 {
     this.equalsKeysDelegate  = equalsKeysDelegate;
     this.extractHashDelegate = equalsHashDelegate;
 }
Esempio n. 3
0
 public TempHashSet(int initialCapacity, EqualsKeysDelegate equalsKeysDelegate, ExtractHashDelegate extractHashDelegate)
     : base(initialCapacity, DEFAULT_LOAD_FACTOR)
 {
     this.equalsKeysDelegate  = equalsKeysDelegate;
     this.extractHashDelegate = extractHashDelegate;
 }
Esempio n. 4
0
 public TempHashSet(float loadFactor, EqualsKeysDelegate equalsKeysDelegate, ExtractHashDelegate extractHashDelegate)
     : base(DEFAULT_INITIAL_CAPACITY, loadFactor)
 {
     this.equalsKeysDelegate  = equalsKeysDelegate;
     this.extractHashDelegate = extractHashDelegate;
 }
Esempio n. 5
0
 public TempHashSet(EqualsKeysDelegate equalsKeysDelegate, ExtractHashDelegate extractHashDelegate)
     : base(DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR)
 {
     this.equalsKeysDelegate  = equalsKeysDelegate;
     this.extractHashDelegate = extractHashDelegate;
 }
Esempio n. 6
0
 public static TempHashSet <K> Create(int size, EqualsKeysDelegate equalsKeysDelegate, ExtractHashDelegate equalsHashDelegate)
 {
     return(new TempHashSet <K>((int)(size / DEFAULT_LOAD_FACTOR) + 1, equalsKeysDelegate, equalsHashDelegate));
 }