// Path: src/main/java/io/usethesource/criterion/api/JmhMap.java
// public interface JmhMap extends Iterable<JmhValue>, JmhValue {
// 
//   public boolean isEmpty();
// 
//   public int size();
// 
//   public JmhMap put(JmhValue key, JmhValue value);
// 
//   public JmhMap removeKey(JmhValue key);
// 
//   /**
//    * @return the value that is mapped to this key, or null if no such value exists
//    */
//   public JmhValue get(JmhValue key);
// 
//   public boolean containsKey(JmhValue key);
// 
//   public boolean containsValue(JmhValue value);
// 
//   /**
//    * @return an iterator over the keys of the map
//    */
//   @Override
//   public Iterator<JmhValue> iterator();
// 
//   /**
//    * @return an iterator over the values of the map
//    */
//   public Iterator<JmhValue> valueIterator();
// 
//   /**
//    * @return an iterator over the keys-value pairs of the map
//    */
//   public Iterator<Entry<JmhValue, JmhValue>> entryIterator();
// 
//   public static interface Builder extends JmhBuilder {
// 
//     void put(JmhValue key, JmhValue value);
// 
//     void putAll(JmhMap map);
// 
//     void putAll(Map<JmhValue, JmhValue> map);
// 
//     @Override
//     JmhMap done();
// 
//   }
// 
// }
// 
// Path: src/main/java/io/usethesource/criterion/api/JmhValue.java
// @CompilerControl(Mode.DONT_INLINE)
// public interface JmhValue {
// 
//   /**
//    * Removes the JmhValue delegation object to reveal its internal representation.
//    *
//    * @return internal representation
//    */
//   Object unwrap();
// 
// }


import java.util.Iterator;
import java.util.Map.Entry;
import clojure.lang.APersistentMap;
import clojure.lang.IPersistentMap;
import io.usethesource.criterion.api.JmhMap;
import io.usethesource.criterion.api.JmhValue;
/**
 * Copyright (c) Michael Steindorfer <Centrum Wiskunde & Informatica> and Contributors.
 * All rights reserved.
 *
 * This file is licensed under the BSD 2-Clause License, which accompanies this project
 * and is available under https://opensource.org/licenses/BSD-2-Clause.
 */
package io.usethesource.criterion.impl.persistent.clojure;



public class ClojureMap implements JmhMap {

  protected final IPersistentMap xs;

  protected ClojureMap(IPersistentMap xs) {
    this.xs = xs;
  }

  @Override
  public boolean isEmpty() {
    return size() == 0;
  }

  @Override
  public int size() {
    return xs.count();
  }

  @Override
// Path: src/main/java/io/usethesource/criterion/api/JmhMap.java
// public interface JmhMap extends Iterable<JmhValue>, JmhValue {
// 
//   public boolean isEmpty();
// 
//   public int size();
// 
//   public JmhMap put(JmhValue key, JmhValue value);
// 
//   public JmhMap removeKey(JmhValue key);
// 
//   /**
//    * @return the value that is mapped to this key, or null if no such value exists
//    */
//   public JmhValue get(JmhValue key);
// 
//   public boolean containsKey(JmhValue key);
// 
//   public boolean containsValue(JmhValue value);
// 
//   /**
//    * @return an iterator over the keys of the map
//    */
//   @Override
//   public Iterator<JmhValue> iterator();
// 
//   /**
//    * @return an iterator over the values of the map
//    */
//   public Iterator<JmhValue> valueIterator();
// 
//   /**
//    * @return an iterator over the keys-value pairs of the map
//    */
//   public Iterator<Entry<JmhValue, JmhValue>> entryIterator();
// 
//   public static interface Builder extends JmhBuilder {
// 
//     void put(JmhValue key, JmhValue value);
// 
//     void putAll(JmhMap map);
// 
//     void putAll(Map<JmhValue, JmhValue> map);
// 
//     @Override
//     JmhMap done();
// 
//   }
// 
// }
// 
// Path: src/main/java/io/usethesource/criterion/api/JmhValue.java
// @CompilerControl(Mode.DONT_INLINE)
// public interface JmhValue {
// 
//   /**
//    * Removes the JmhValue delegation object to reveal its internal representation.
//    *
//    * @return internal representation
//    */
//   Object unwrap();
// 
// }


// Path: src/main/java/io/usethesource/criterion/impl/persistent/clojure/ClojureMap.java
import java.util.Iterator;
import java.util.Map.Entry;
import clojure.lang.APersistentMap;
import clojure.lang.IPersistentMap;
import io.usethesource.criterion.api.JmhMap;
import io.usethesource.criterion.api.JmhValue;

/**
 * Copyright (c) Michael Steindorfer <Centrum Wiskunde & Informatica> and Contributors.
 * All rights reserved.
 *
 * This file is licensed under the BSD 2-Clause License, which accompanies this project
 * and is available under https://opensource.org/licenses/BSD-2-Clause.
 */
package io.usethesource.criterion.impl.persistent.clojure;



public class ClojureMap implements JmhMap {

  protected final IPersistentMap xs;

  protected ClojureMap(IPersistentMap xs) {
    this.xs = xs;
  }

  @Override
  public boolean isEmpty() {
    return size() == 0;
  }

  @Override
  public int size() {
    return xs.count();
  }

  @Override
  public JmhMap put(JmhValue key, JmhValue value) {