/// <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); }
public override long Get(long key) { return(Unpack(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key))); }
public override VALUE Get(int key) { return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key)); }
public override bool ContainsKey(long key) { return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key) != null); }
public override bool ContainsKey(int key) { return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key) != default(VALUE)); }