Skip to content

Instantly share code, notes, and snippets.

export default class HashMap extends Map {
delete(key) {
return super.delete(JSON.stringify(key));
}
forEach(callbackFn) {
super.forEach(([key, value], _, thisArg) =>
callbackFn(value, key, thisArg)
);
}
import com.google.common.collect.Iterators;
import jdk.nashorn.api.scripting.ScriptObjectMirror;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import javax.script.*;
import java.io.FileNotFoundException;
import java.util.HashMap;
import java.util.Iterator;