import { MapItems } from "./Collection"; import Iterator from "./Iterator"; export declare class Entry { constructor(key: K, value: V); private _key; readonly key: K; private _value; readonly value: V; } export default class Map { private _items; /** * */ constructor(map?: Map | MapItems | Array); private _length; /** * Returns the number of key-value mappings in this map. * @returns {number}map */ readonly length: number; /** * Returns true if this map contains no key-value mappings. * @return */ isEmpty(): boolean; /** * * @param {K} key * @returns {boolean} */ containsKey(key: K): boolean; /** * * @param {V} value * @returns {boolean} */ containsValue(value: V): boolean; /** * * @param {K} key * @returns {V} */ get(key: K): V; /** * * @param {K} key * @param {V} def * @returns {V} */ getOrDefault(key: K, def: V): V; /** * * @param {K} key * @param {V} value * @returns {V} */ put(key: K, value: V): V; /** * * @param {K} key * @returns {boolean} */ remove(key: K): boolean; /** * * @param {Map | MapItems | Array} map */ putAll(map: Map | MapItems | Array): Array; /** * */ clear(): void; /** * * @returns {Array} */ keySet(): Array; /** * * @returns {Array} */ values(): Array; /** * * @returns {Array>} */ entrySet(): Array>; /** * * @param {(item: V, key?: K) => boolean} callback * @returns {boolean} */ forEach(callback: (item: V, key?: K) => void | boolean): boolean; /** * * @param {(item: V, key?: K, obj?: V) => T} callback * @returns {Array} */ map(callback: (value: V, key: K) => U): Array; /** * * @param {(entry: Entry) => boolean} predicate * @returns {Map} */ filter(predicate: (entry: Entry) => boolean): Map; iterator(): Iterator>; private add; }