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

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

package js.util.collections;

import js.lang.Any;
import js.util.function.AnyKeyConsumer;
import js.util.iterable.IterableIterator;
import org.teavm.jso.JSProperty;


public interface ReadonlyMap extends IterableIterator>, Any {
    void forEach(AnyKeyConsumer> callbackfn);

    V get(K key);

    boolean has(K key);

    @JSProperty
    int getSize();

    /**
     * Returns an iterable of key, value pairs for every entry in the map.
     */
    IterableIterator> entries();

    /**
     * Returns an iterable of keys in the map
     */
    IterableIterator keys();

    /**
     * Returns an iterable of values in the map
     */
    IterableIterator values();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy