public HashedListCursor GetCursor(Object key) { HashedListCursor c = (HashedListCursor)GetCursor(); c.Key = key; return(c); }
public void RemoveUnkeyedObject(Object val) { for (HashedListCursor c = (HashedListCursor)GetCursor(); c.MoveNext();) { if (c.Key == null && c.Value.Equals(val)) { c.Remove(); } } }
public void RemoveValue(Object val) { for (HashedListCursor c = (HashedListCursor)GetCursor(); c.MoveNext();) { if (c.Value.Equals(val)) { c.Remove(); } } }
/// <summary>Return a Cursor starting with the n'th entry.</summary> public HashedListCursor GetCursor(int n) { if (n == 0 && numElements == 0) { return(new HashedListCursor(this, first)); } HashedListElement e = getElement(n); HashedListCursor c = (HashedListCursor)GetCursor(); // c.Current = e; c.Key = e.Key; return(c); }