package com.hubspot.jinjava.objects.collections;

import com.google.common.collect.ForwardingMap;
import com.hubspot.jinjava.objects.PyWrapper;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class PyMap extends ForwardingMap<String, Object> implements PyWrapper {
  private Map<String, Object> map;

  public PyMap(Map<String, Object> map) {
    this.map = map;
  }

  @Override
  protected Map<String, Object> delegate() {
    return map;
  }

  @Override
  public String toString() {
    return delegate().toString();
  }

  public Map<String, Object> toMap() {
    return map;
  }

  public Set<java.util.Map.Entry<String, Object>> items() {
    return entrySet();
  }

  public void update(Map<? extends String, ? extends Object> m) {
    putAll(m);
  }

  public Iterator<String> iterator() {
    return keySet().iterator();
  }
}

@@ -141,35 +141,8 @@
 er;%0A
-import java.util.Iterator;%0A
 impo
@@ -759,83 +759,7 @@
 %0A  %7D
-%0A%0A  public Iterator%3CString%3E iterator() %7B%0A    return keySet().iterator();%0A  %7D
 %0A%7D%0A

Remove iterator method