Esempio n. 1
0
 /// <summary>
 /// Prefer using <seealso cref="contains(long)"/> - this method is identical and required by the <seealso cref="IntPredicate"/> interface
 /// </summary>
 /// <param name="value"> the input argument </param>
 /// <returns> true if the input argument matches the predicate, otherwise false </returns>
 public override bool Test(long value)
 {
     return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, value) == _valueMarker);
 }
Esempio n. 2
0
 public override long Get(long key)
 {
     return(Unpack(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key)));
 }
Esempio n. 3
0
 public override VALUE Get(int key)
 {
     return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key));
 }
Esempio n. 4
0
 public override bool ContainsKey(long key)
 {
     return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key) != null);
 }
Esempio n. 5
0
 public override bool ContainsKey(int key)
 {
     return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key) != default(VALUE));
 }