Beispiel #1
0
 /**
  * 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
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 protected internal ReferenceMapIterator(AbstractReferenceMap parent)
     : base(parent)
 {
 }
Beispiel #4
0
 internal ReferenceValuesIterator(AbstractReferenceMap parent)
     : base(parent)
 {
 }
Beispiel #5
0
 internal ReferenceKeySetIterator(AbstractReferenceMap parent)
     : base(parent)
 {
 }