public override bool AddAll(PrimitiveLongIterator values) { bool changed = false; while (values.HasNext()) { changed |= HopScotchHashingAlgorithm.Put(Table, _monitor, DEFAULT_HASHING, values.Next(), _valueMarker, this) == null; } return(changed); }
public override bool Remove(long value) { return(HopScotchHashingAlgorithm.Remove(Table, _monitor, DEFAULT_HASHING, value) == _valueMarker); }
public Monitor_Adapter(HopScotchHashingAlgorithm outerInstance) { this._outerInstance = outerInstance; }
public override bool Add(long value) { return(HopScotchHashingAlgorithm.Put(Table, _monitor, DEFAULT_HASHING, value, _valueMarker, this) == null); }
public override bool ContainsKey(long key) { return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key) != null); }
public override long Remove(long key) { return(Unpack(HopScotchHashingAlgorithm.Remove(Table, _monitor, DEFAULT_HASHING, key))); }
public override long Get(int key) { return(Unpack(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key))); }
public override long Put(long key, long value) { return(Unpack(HopScotchHashingAlgorithm.Put(Table, _monitor, DEFAULT_HASHING, key, Pack(value), this))); }
public override VALUE Remove(int key) { return(HopScotchHashingAlgorithm.Remove(Table, _monitor, DEFAULT_HASHING, key)); }
public override bool ContainsKey(int key) { return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key) != default(VALUE)); }
public override VALUE Put(int key, VALUE value) { return(HopScotchHashingAlgorithm.Put(Table, _monitor, DEFAULT_HASHING, key, value, this)); }
/// <summary> /// Prefer using <seealso cref="contains(int)"/> - 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(int value) { return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, value) == _valueMarker); }
public override VALUE Get(long key) { return(HopScotchHashingAlgorithm.Get(Table, _monitor, DEFAULT_HASHING, key)); }