/** * Creates a new entry object for the ReferenceMap. * * @param parent the parent map * @param next the next entry in the hash bucket * @param hashCode the hash code of the key * @param key the key * @param value the value */ public ReferenceEntry(AbstractReferenceMap parent, HashEntry next, int hashCode, Object key, Object value) : base(next, hashCode, null, null) { this.parent = parent; this.key = toReference(parent.keyType, key, hashCode); this.value = toReference(parent.valueType, value, hashCode); // the key hashCode is passed in deliberately }
public ReferenceEntrySetIterator(AbstractReferenceMap parent) : base() { this.parent = parent; index = (parent.size() != 0 ? parent.data.Length : 0); // have to do this here! size() invocation above // may have altered the modCount. expectedModCount = parent.modCount; }
protected internal ReferenceMapIterator(AbstractReferenceMap parent) : base(parent) { }
internal ReferenceValuesIterator(AbstractReferenceMap parent) : base(parent) { }
internal ReferenceKeySetIterator(AbstractReferenceMap parent) : base(parent) { }