@Override public boolean contains(Object o) {if (o instanceof Entry) {Entry<?> entry = (Entry<?>) o;int count = count(entry.getElement());return (count == entry.getCount()) && (count > 0);}return false;}

public override bool contains(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}
