亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hashmap.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
        }    }    /**     * Returns <tt>true</tt> if this map contains a mapping for the     * specified key.     *     * @param   key   The key whose presence in this map is to be tested     * @return <tt>true</tt> if this map contains a mapping for the specified     * key.     */    public boolean containsKey(Object key) {        Object k = maskNull(key);        int hash = hash(k);        int i = indexFor(hash, table.length);        Entry e = table[i];         while (e != null) {            if (e.hash == hash && eq(k, e.key))                 return true;            e = e.next;        }        return false;    }    /**     * Returns the entry associated with the specified key in the     * HashMap.  Returns null if the HashMap contains no mapping     * for this key.     */    Entry getEntry(Object key) {        Object k = maskNull(key);        int hash = hash(k);        int i = indexFor(hash, table.length);        Entry e = table[i];         while (e != null && !(e.hash == hash && eq(k, e.key)))            e = e.next;        return e;    }      /**     * Associates the specified value with the specified key in this map.     * If the map previously contained a mapping for this key, the old     * value is replaced.     *     * @param key key with which the specified value is to be associated.     * @param value value to be associated with the specified key.     * @return previous value associated with specified key, or <tt>null</tt>     *	       if there was no mapping for key.  A <tt>null</tt> return can     *	       also indicate that the HashMap previously associated     *	       <tt>null</tt> with the specified key.     */    public Object put(Object key, Object value) {        Object k = maskNull(key);        int hash = hash(k);        int i = indexFor(hash, table.length);        for (Entry e = table[i]; e != null; e = e.next) {            if (e.hash == hash && eq(k, e.key)) {                Object oldValue = e.value;                e.value = value;                e.recordAccess(this);                return oldValue;            }        }        modCount++;        addEntry(hash, k, value, i);        return null;    }    /**     * This method is used instead of put by constructors and     * pseudoconstructors (clone, readObject).  It does not resize the table,     * check for comodification, etc.  It calls createEntry rather than     * addEntry.     */    private void putForCreate(Object key, Object value) {        Object k = maskNull(key);        int hash = hash(k);        int i = indexFor(hash, table.length);        /**         * Look for preexisting entry for key.  This will never happen for         * clone or deserialize.  It will only happen for construction if the         * input Map is a sorted map whose ordering is inconsistent w/ equals.         */        for (Entry e = table[i]; e != null; e = e.next) {            if (e.hash == hash && eq(k, e.key)) {                e.value = value;                return;            }        }        createEntry(hash, k, value, i);    }    void putAllForCreate(Map m) {        for (Iterator i = m.entrySet().iterator(); i.hasNext(); ) {            Map.Entry e = (Map.Entry) i.next();            putForCreate(e.getKey(), e.getValue());        }    }    /**     * Rehashes the contents of this map into a new array with a     * larger capacity.  This method is called automatically when the     * number of keys in this map reaches its threshold.     *     * If current capacity is MAXIMUM_CAPACITY, this method does not     * resize the map, but but sets threshold to Integer.MAX_VALUE.     * This has the effect of preventing future calls.     *     * @param newCapacity the new capacity, MUST be a power of two;     *        must be greater than current capacity unless current     *        capacity is MAXIMUM_CAPACITY (in which case value     *        is irrelevant).     */    void resize(int newCapacity) {        Entry[] oldTable = table;        int oldCapacity = oldTable.length;        if (oldCapacity == MAXIMUM_CAPACITY) {            threshold = Integer.MAX_VALUE;            return;        }        Entry[] newTable = new Entry[newCapacity];        transfer(newTable);        table = newTable;        threshold = (int)(newCapacity * loadFactor);    }    /**      * Transfer all entries from current table to newTable.     */    void transfer(Entry[] newTable) {        Entry[] src = table;        int newCapacity = newTable.length;        for (int j = 0; j < src.length; j++) {            Entry e = src[j];            if (e != null) {                src[j] = null;                do {                    Entry next = e.next;                    int i = indexFor(e.hash, newCapacity);                      e.next = newTable[i];                    newTable[i] = e;                    e = next;                } while (e != null);            }        }    }    /**     * Copies all of the mappings from the specified map to this map     * These mappings will replace any mappings that     * this map had for any of the keys currently in the specified map.     *     * @param m mappings to be stored in this map.     * @throws NullPointerException if the specified map is null.     */    public void putAll(Map m) {        int numKeysToBeAdded = m.size();        if (numKeysToBeAdded == 0)            return;        /*         * Expand the map if the map if the number of mappings to be added         * is greater than or equal to threshold.  This is conservative; the         * obvious condition is (m.size() + size) >= threshold, but this         * condition could result in a map with twice the appropriate capacity,         * if the keys to be added overlap with the keys already in this map.         * By using the conservative calculation, we subject ourself         * to at most one extra resize.         */        if (numKeysToBeAdded > threshold) {            int targetCapacity = (int)(numKeysToBeAdded / loadFactor + 1);            if (targetCapacity > MAXIMUM_CAPACITY)                targetCapacity = MAXIMUM_CAPACITY;            int newCapacity = table.length;            while (newCapacity < targetCapacity)                newCapacity <<= 1;            if (newCapacity > table.length)                resize(newCapacity);        }        for (Iterator i = m.entrySet().iterator(); i.hasNext(); ) {            Map.Entry e = (Map.Entry) i.next();            put(e.getKey(), e.getValue());        }    }      /**     * Removes the mapping for this key from this map if present.     *     * @param  key key whose mapping is to be removed from the map.     * @return previous value associated with specified key, or <tt>null</tt>     *	       if there was no mapping for key.  A <tt>null</tt> return can     *	       also indicate that the map previously associated <tt>null</tt>     *	       with the specified key.     */    public Object remove(Object key) {        Entry e = removeEntryForKey(key);        return (e == null ? e : e.value);    }    /**     * Removes and returns the entry associated with the specified key     * in the HashMap.  Returns null if the HashMap contains no mapping     * for this key.     */    Entry removeEntryForKey(Object key) {        Object k = maskNull(key);        int hash = hash(k);        int i = indexFor(hash, table.length);        Entry prev = table[i];        Entry e = prev;        while (e != null) {            Entry next = e.next;            if (e.hash == hash && eq(k, e.key)) {                modCount++;                size--;                if (prev == e)                     table[i] = next;                else                    prev.next = next;                e.recordRemoval(this);                return e;            }            prev = e;            e = next;        }           return e;    }    /**     * Special version of remove for EntrySet.     */    Entry removeMapping(Object o) {        if (!(o instanceof Map.Entry))            return null;        Map.Entry entry = (Map.Entry)o;        Object k = maskNull(entry.getKey());        int hash = hash(k);        int i = indexFor(hash, table.length);        Entry prev = table[i];        Entry e = prev;        while (e != null) {            Entry next = e.next;            if (e.hash == hash && e.equals(entry)) {                modCount++;                size--;                if (prev == e)                     table[i] = next;                else                    prev.next = next;                e.recordRemoval(this);                return e;            }            prev = e;            e = next;        }           return e;    }    /**     * Removes all mappings from this map.     */    public void clear() {        modCount++;        Entry tab[] = table;        for (int i = 0; i < tab.length; i++)             tab[i] = null;        size = 0;    }    /**     * Returns <tt>true</tt> if this map maps one or more keys to the     * specified value.     *     * @param value value whose presence in this map is to be tested.     * @return <tt>true</tt> if this map maps one or more keys to the     *         specified value.     */    public boolean containsValue(Object value) {	if (value == null)             return containsNullValue();	Entry tab[] = table;        for (int i = 0; i < tab.length ; i++)            for (Entry e = tab[i] ; e != null ; e = e.next)                if (value.equals(e.value))                    return true;	return false;    }    /**     * Special-case code for containsValue with null argument     **/    private boolean containsNullValue() {	Entry tab[] = table;        for (int i = 0; i < tab.length ; i++)            for (Entry e = tab[i] ; e != null ; e = e.next)                if (e.value == null)                    return true;	return false;    }    /**     * Returns a shallow copy of this <tt>HashMap</tt> instance: the keys and     * values themselves are not cloned.     *     * @return a shallow copy of this map.     */    public Object clone() {        HashMap result = null;	try { 	    result = (HashMap)super.clone();	} catch (CloneNotSupportedException e) { 	    // assert false;	}        result.table = new Entry[table.length];        result.entrySet = null;        result.modCount = 0;        result.size = 0;        result.init();        result.putAllForCreate(this);        return result;    }    static class Entry implements Map.Entry {        final Object key;        Object value;        final int hash;        Entry next;        /**         * Create new entry.         */        Entry(int h, Object k, Object v, Entry n) { 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕国产一区| 在线观看免费视频综合| 日韩欧美国产电影| 石原莉奈在线亚洲二区| 成人黄色免费短视频| 久久人人超碰精品| 久久国产免费看| 精品国产免费一区二区三区四区 | 欧美体内she精视频| 亚洲视频综合在线| 97se亚洲国产综合自在线| 国产精品色在线观看| 成人av手机在线观看| 中文字幕av一区二区三区高 | 亚洲二区在线视频| 欧美日韩在线一区二区| 亚洲成av人片www| 日韩一区二区三区精品视频| 美女视频第一区二区三区免费观看网站 | 精品91自产拍在线观看一区| 日韩成人免费看| 欧美va亚洲va香蕉在线| 国产麻豆欧美日韩一区| 欧美精品一区二区蜜臀亚洲| 国产成人夜色高潮福利影视| 亚洲三级小视频| 欧美日韩视频专区在线播放| 日韩在线a电影| 精品国产sm最大网站| 处破女av一区二区| 亚洲摸摸操操av| 欧美美女bb生活片| 国产麻豆视频一区二区| 最好看的中文字幕久久| 综合电影一区二区三区| 亚洲精品国产一区二区精华液| 日本一区二区三区高清不卡| 中文字幕欧美一区| 亚洲免费av在线| 亚洲精品日产精品乱码不卡| 亚洲va国产va欧美va观看| 国产精品66部| 亚洲一区二区高清| 亚洲三级电影全部在线观看高清| 欧美精品高清视频| 一区二区三区中文免费| 国产盗摄一区二区三区| 欧美亚洲综合在线| 日本成人中文字幕| 一色桃子久久精品亚洲| 国内精品久久久久影院一蜜桃| 粉嫩嫩av羞羞动漫久久久| 国产 日韩 欧美大片| 国产成人免费视频网站| 久久精品国产免费| 久久久精品中文字幕麻豆发布| 亚洲午夜在线视频| 91久久线看在观草草青青| 欧美变态tickling挠脚心| 另类成人小视频在线| 久久精品在这里| 成人av电影免费在线播放| 亚洲综合久久久| 91精品国产一区二区| 亚洲午夜av在线| 激情文学综合丁香| 日韩一区二区三区免费看| 亚洲五月六月丁香激情| 国产一区 二区| 久久在线观看免费| 麻豆91免费观看| 黄色小说综合网站| 欧美日韩三级一区| 韩国精品在线观看| 国产日韩精品一区二区三区 | 日本一区二区电影| 国产福利一区二区三区| 久久久精品综合| 在线电影院国产精品| jizzjizzjizz欧美| 奇米综合一区二区三区精品视频| 日韩午夜av一区| 91视频国产观看| 亚洲乱码中文字幕| 日韩欧美亚洲一区二区| 99精品视频在线免费观看| 九九精品视频在线看| 国产大陆a不卡| 欧美日韩一本到| 欧美日韩视频在线第一区| 欧美日韩亚洲综合在线| 欧美日韩电影在线| 日韩欧美在线123| 久久品道一品道久久精品| 中文一区二区完整视频在线观看| 国产精品日日摸夜夜摸av| 综合久久久久久| 亚洲一区二区在线免费看| 亚洲成a人片在线观看中文| 男女男精品网站| 国产成人免费xxxxxxxx| 色婷婷一区二区三区四区| 欧美日韩亚洲另类| 久久亚洲综合av| 综合av第一页| 久久精品久久久精品美女| 国产91精品免费| 欧美色综合网站| 精品国产乱码91久久久久久网站| 中文字幕制服丝袜一区二区三区| 伊人一区二区三区| 日本大胆欧美人术艺术动态| 黄色小说综合网站| 色激情天天射综合网| 日韩手机在线导航| 国产精品夫妻自拍| 日日骚欧美日韩| 成人av网站在线| 欧美一区二区三区人| 国产精品国产三级国产aⅴ入口 | 欧美日韩一本到| 国产亚洲成年网址在线观看| 亚洲精品视频自拍| 国产一区二区三区日韩| 91久久精品一区二区三区| 26uuu欧美日本| 亚洲图片欧美一区| 成人午夜电影久久影院| 欧美日韩一区二区三区四区 | 欧美无砖专区一中文字| 国产亚洲精品超碰| 日韩不卡在线观看日韩不卡视频| 成人精品鲁一区一区二区| 欧美一区三区四区| 亚洲一区免费观看| 成人免费视频app| 日韩欧美亚洲一区二区| 亚洲成人精品在线观看| 国产成都精品91一区二区三| 欧美一区二区在线播放| 一区二区三区精品| 99久久精品一区| 国产亚洲污的网站| 久久超碰97中文字幕| 欧美日韩卡一卡二| 一区二区视频在线看| 丁香激情综合国产| 日韩精品一区二区三区在线播放| 亚洲男人的天堂网| 99re在线精品| 久久九九99视频| 国产综合色精品一区二区三区| 欧美日韩午夜在线| 亚洲黄网站在线观看| 91丨国产丨九色丨pron| 国产精品午夜免费| 成人午夜视频福利| 国产精品入口麻豆九色| 成人午夜免费av| 中文字幕制服丝袜一区二区三区| 亚洲色图欧洲色图| 欧美性猛片aaaaaaa做受| 午夜伊人狠狠久久| 久久久久久麻豆| 狠狠色伊人亚洲综合成人| 日本一区二区三区久久久久久久久不 | 国产免费成人在线视频| 91高清视频免费看| 91香蕉视频mp4| 成人欧美一区二区三区| 91视频国产观看| 亚洲日本在线视频观看| 97久久人人超碰| 亚洲精品国产精品乱码不99| 色域天天综合网| 亚洲午夜久久久久久久久电影院 | 乱一区二区av| 欧美第一区第二区| 韩日av一区二区| 国产欧美日本一区视频| 成人黄色软件下载| 一区二区三区中文字幕在线观看| 在线中文字幕不卡| 亚洲丰满少妇videoshd| 日韩欧美国产高清| 成人黄色777网| 亚洲免费观看高清完整版在线| 色偷偷88欧美精品久久久| 五月天丁香久久| 精品国产髙清在线看国产毛片| 国产乱人伦精品一区二区在线观看| 久久精品亚洲精品国产欧美| 成人福利在线看| 亚洲亚洲精品在线观看| 日韩欧美国产综合在线一区二区三区| 麻豆91精品91久久久的内涵| 国产精品情趣视频| 欧美日韩美少妇| 国产精品伊人色| 亚洲免费观看视频|