All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.util.collections.JsMap Maven / Gradle / Ivy

package js.util.collections;

import js.lang.Any;
import js.util.iterable.JsIterable;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSByRef;


public interface JsMap extends ReadonlyMap {
    @JSBody(script = "return Map.prototype")
    static JsMap prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(script = "return new Map()")
    static  JsMap create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = "entries", script = "return new Map(entries)")
    static  JsMap create(Array> entries) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = "entries", script = "return new Map(entries)")
    static  JsMap create(KeyValue entries) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = "entries", script = "return new Map(entries)")
    static  JsMap create(JsIterable> entries) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    void clear();

    boolean delete(K key);

    JsMap set(K key, V value);


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy