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

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

?? treemap.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
     */    private Entry getPrecedingEntry(Object key) {        Entry p = root;        if (p==null)            return null;        while (true) {            int cmp = compare(key, p.key);            if (cmp > 0) {                if (p.right != null)                    p = p.right;                else                    return p;            } else {                if (p.left != null) {                    p = p.left;                } else {                    Entry parent = p.parent;                    Entry ch = p;                    while (parent != null && ch == parent.left) {                        ch = parent;                        parent = parent.parent;                    }                    return parent;                }            }        }    }    /**     * Returns the key corresonding to the specified Entry.  Throw      * NoSuchElementException if the Entry is <tt>null</tt>.     */    private static Object key(Entry e) {        if (e==null)            throw new NoSuchElementException();        return e.key;    }    /**     * 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 map previously associated <tt>null</tt>     *         with the specified key.     * @throws    ClassCastException key cannot be compared with the keys     *            currently in the map.     * @throws NullPointerException key is <tt>null</tt> and this map uses     *         natural order, or its comparator does not tolerate     *         <tt>null</tt> keys.     */    public Object put(Object key, Object value) {        Entry t = root;        if (t == null) {            incrementSize();            root = new Entry(key, value, null);            return null;       }        while (true) {            int cmp = compare(key, t.key);            if (cmp == 0) {                return t.setValue(value);            } else if (cmp < 0) {                if (t.left != null) {                    t = t.left;                } else {                    incrementSize();                    t.left = new Entry(key, value, t);                    fixAfterInsertion(t.left);                    return null;                }            } else { // cmp > 0                if (t.right != null) {                    t = t.right;                } else {                    incrementSize();                    t.right = new Entry(key, value, t);                    fixAfterInsertion(t.right);                    return null;                }            }        }    }    /**     * Removes the mapping for this key from this TreeMap if present.     *     * @param  key key for which mapping should be removed     * @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.     *      * @throws    ClassCastException key cannot be compared with the keys     *            currently in the map.     * @throws NullPointerException key is <tt>null</tt> and this map uses     *         natural order, or its comparator does not tolerate     *         <tt>null</tt> keys.     */    public Object remove(Object key) {        Entry p = getEntry(key);        if (p == null)            return null;        Object oldValue = p.value;        deleteEntry(p);        return oldValue;    }    /**     * Removes all mappings from this TreeMap.     */    public void clear() {        modCount++;        size = 0;        root = null;    }    /**     * Returns a shallow copy of this <tt>TreeMap</tt> instance. (The keys and     * values themselves are not cloned.)     *     * @return a shallow copy of this Map.     */    public Object clone() {        TreeMap clone = null;        try {             clone = (TreeMap)super.clone();        } catch (CloneNotSupportedException e) {             throw new InternalError();        }        // Put clone into "virgin" state (except for comparator)        clone.root = null;        clone.size = 0;        clone.modCount = 0;        clone.entrySet = null;        // Initialize clone with our mappings        try {            clone.buildFromSorted(size, entrySet().iterator(), null, null);        } catch (java.io.IOException cannotHappen) {        } catch (ClassNotFoundException cannotHappen) {        }        return clone;    }    // Views    /**     * This field is initialized to contain an instance of the entry set     * view the first time this view is requested.  The view is stateless,     * so there's no reason to create more than one.     */    private transient volatile Set entrySet = null;    /**     * Returns a Set view of the keys contained in this map.  The set's     * iterator will return the keys in ascending order.  The map is backed by     * this <tt>TreeMap</tt> instance, so changes to this map are reflected in     * the Set, and vice-versa.  The Set supports element removal, which     * removes the corresponding mapping from the map, via the     * <tt>Iterator.remove</tt>, <tt>Set.remove</tt>, <tt>removeAll</tt>,     * <tt>retainAll</tt>, and <tt>clear</tt> operations.  It does not support     * the <tt>add</tt> or <tt>addAll</tt> operations.     *     * @return a set view of the keys contained in this TreeMap.     */    public Set keySet() {        if (keySet == null) {            keySet = new AbstractSet() {                public Iterator iterator() {                    return new KeyIterator();                }                public int size() {                    return TreeMap.this.size();                }                public boolean contains(Object o) {                    return containsKey(o);                }                public boolean remove(Object o) {                    int oldSize = size;                    TreeMap.this.remove(o);                    return size != oldSize;                }                public void clear() {                    TreeMap.this.clear();                }            };        }        return keySet;    }    /**     * Returns a collection view of the values contained in this map.  The     * collection's iterator will return the values in the order that their     * corresponding keys appear in the tree.  The collection is backed by     * this <tt>TreeMap</tt> instance, so changes to this map are reflected in     * the collection, and vice-versa.  The collection supports element     * removal, which removes the corresponding mapping from the map through     * the <tt>Iterator.remove</tt>, <tt>Collection.remove</tt>,     * <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt> operations.     * It does not support the <tt>add</tt> or <tt>addAll</tt> operations.     *     * @return a collection view of the values contained in this map.     */    public Collection values() {        if (values == null) {            values = new AbstractCollection() {                public Iterator iterator() {                    return new ValueIterator();                }                public int size() {                    return TreeMap.this.size();                }                public boolean contains(Object o) {                    for (Entry e = firstEntry(); e != null; e = successor(e))                        if (valEquals(e.getValue(), o))                            return true;                    return false;                }                public boolean remove(Object o) {                    for (Entry e = firstEntry(); e != null; e = successor(e)) {                        if (valEquals(e.getValue(), o)) {                            deleteEntry(e);                            return true;                        }                    }                    return false;                }                public void clear() {                    TreeMap.this.clear();                }            };        }        return values;    }    /**     * Returns a set view of the mappings contained in this map.  The set's     * iterator returns the mappings in ascending key order.  Each element in     * the returned set is a <tt>Map.Entry</tt>.  The set is backed by this     * map, so changes to this map are reflected in the set, and vice-versa.     * The set supports element removal, which removes the corresponding     * mapping from the TreeMap, through the <tt>Iterator.remove</tt>,     * <tt>Set.remove</tt>, <tt>removeAll</tt>, <tt>retainAll</tt> and     * <tt>clear</tt> operations.  It does not support the <tt>add</tt> or     * <tt>addAll</tt> operations.     *     * @return a set view of the mappings contained in this map.     * @see Map.Entry     */    public Set entrySet() {        if (entrySet == null) {            entrySet = new AbstractSet() {                public Iterator iterator() {                    return new EntryIterator();                }                public boolean contains(Object o) {                    if (!(o instanceof Map.Entry))                        return false;                    Map.Entry entry = (Map.Entry)o;                    Object value = entry.getValue();                    Entry p = getEntry(entry.getKey());                    return p != null && valEquals(p.getValue(), value);                }                public boolean remove(Object o) {                    if (!(o instanceof Map.Entry))                        return false;                    Map.Entry entry = (Map.Entry)o;                    Object value = entry.getValue();                    Entry p = getEntry(entry.getKey());                    if (p != null && valEquals(p.getValue(), value)) {                        deleteEntry(p);                        return true;                    }                    return false;                }                public int size() {                    return TreeMap.this.size();                }                public void clear() {                    TreeMap.this.clear();                }            };        }        return entrySet;    }    /**     * Returns a view of the portion of this map whose keys range from     * <tt>fromKey</tt>, inclusive, to <tt>toKey</tt>, exclusive.  (If     * <tt>fromKey</tt> and <tt>toKey</tt> are equal, the returned sorted map     * is empty.)  The returned sorted map is backed by this map, so changes     * in the returned sorted map are reflected in this map, and vice-versa.     * The returned sorted map supports all optional map operations.<p>     *     * The sorted map returned by this method will throw an     * <tt>IllegalArgumentException</tt> if the user attempts to insert a key     * less than <tt>fromKey</tt> or greater than or equal to     * <tt>toKey</tt>.<p>     *     * Note: this method always returns a <i>half-open range</i> (which     * includes its low endpoint but not its high endpoint).  If you need a     * <i>closed range</i> (which includes both endpoints), and the key type     * allows for calculation of the successor a given key, merely request the     * subrange from <tt>lowEndpoint</tt> to <tt>successor(highEndpoint)</tt>.     * For example, suppose that <tt>m</tt> is a sorted map whose keys are     * strings.  The following idiom obtains a view containing all of the     * key-value mappings in <tt>m</tt> whose keys are between <tt>low</tt>     * and <tt>high</tt>, inclusive:     *             <pre>    SortedMap sub = m.submap(low, high+"\0");</pre>     * A similar technique can be used to generate an <i>open range</i> (which     * contains neither endpoint).  The following idiom obtains a view     * containing all of the key-value mappings in <tt>m</tt> whose keys are     * between <tt>low</tt> and <tt>high</tt>, exclusive:     *             <pre>    SortedMap sub = m.subMap(low+"\0", high);</pre>     *     * @param fromKey low endpoint (inclusive) of the subMap.     * @param toKey high endpoint (exclusive) of the subMap.     *      * @return a view of the portion of this map whose keys range from     *                <tt>fromKey</tt>, inclusive, to <tt>toKey</tt>, exclusive.     *      * @throws ClassCastException if <tt>fromKey</tt> and <tt>toKey</tt>     *         cannot be compared to one another using this map's comparator     *         (or, if the map has no comparator, using natural ordering).     * @throws IllegalArgumentException if <tt>fromKey</tt> is greater than     *         <tt>toKey</tt>.     * @throws NullPointerException if <tt>fromKey</tt> or <tt>toKey</tt> is     *               <tt>null</tt> and this map uses natural order, or its     *               comparator does not tolerate <tt>null</tt> keys.     */    public SortedMap subMap(Object fromKey, Object toKey) {        return new SubMap(fromKey, toKey);    }    /**     * Returns a view of the portion of this map whose keys are strictly less     * than <tt>toKey</tt>.  The returned sorted map is backed by this map, so     * changes in the returned sorted map are reflected in this map, and     * vice-versa.  The returned sorted map supports all optional map     * operations.<p>     *     * The sorted map returned by this method will throw an     * <tt>IllegalArgumentException</tt> if the user attempts to insert a key     * greater than or equal to <tt>toKey</tt>.<p>     *     * Note: this method always returns a view that does not contain its     * (high) endpoint.  If you need a view that does contain this endpoint,     * and the key type allows for calculation of the successor a given key,     * merely request a headMap bounded by <tt>successor(highEndpoint)</tt>.     * For example, suppose that suppose that <tt>m</tt> is a sorted map whose     * keys are strings.  The following idiom obtains a view containing all of     * the key-value mappings in <tt>m</tt> whose keys are less than or equal     * to <tt>high</tt>:     * <pre>     *     SortedMap head = m.headMap(high+"\0");     * </pre>     *     * @param toKey high endpoint (exclusive) of the headMap.     * @return a view of the portion of this map whose keys are strictly     *                less than <tt>toKey</tt>.     *     * @throws ClassCastException if <tt>toKey</tt> is not compatible     *         with this map's comparator (or, if the map has no comparator,     *         if <tt>toKey</tt> does not implement <tt>Comparable</tt>).     * @throws IllegalArgumentException if this map is itself a subMap,     *         headMap, or tailMap, and <tt>toKey</tt> is not within the     *         specified range of the subMap, headMap, or tailMap.     * @throws NullPointerException if <tt>toKey</tt> is <tt>null</tt> and     *               this map uses natural order, or its comparator does not     *               tolerate <tt>null</tt> keys.     */    public SortedMap headMap(Object toKey) {        return new SubMap(toKey, true);    }    /**     * Returns a view of the portion of this map whose keys are greater than     * or equal to <tt>fromKey</tt>.  The returned sorted map is backed by     * this map, so changes in the returned sorted map are reflected in this     * map, and vice-versa.  The returned sorted map supports all optional map     * operations.<p>     *     * The sorted map returned by this method will throw an     * <tt>IllegalArgumentException</tt> if the user attempts to insert a key     * less than <tt>fromKey</tt>.<p>     *     * Note: this method always returns a view that contains its (low)     * endpoint.  If you need a view that does not contain this endpoint, and     * the element type allows for calculation of the successor a given value,     * merely request a tailMap bounded by <tt>successor(lowEndpoint)</tt>.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区鲁丝不卡| 精品处破学生在线二十三| 美女尤物国产一区| 亚洲一二三四区| 日韩美女视频一区二区| 亚洲欧美自拍偷拍| 欧美极品xxx| 国产精品网站导航| 国产精品乱码人人做人人爱 | 欧美色男人天堂| av亚洲精华国产精华| 激情五月婷婷综合网| 国产毛片精品一区| 国产精品主播直播| 国产69精品久久99不卡| 国产成人在线视频网址| 国产精品1024久久| 99久久伊人久久99| 91成人网在线| 欧美日韩一区二区欧美激情 | 欧美日韩二区三区| 欧美私人免费视频| 欧美精品少妇一区二区三区| 91精品国产福利| 久久尤物电影视频在线观看| 国产亚洲成aⅴ人片在线观看| 97久久超碰国产精品电影| 国产精品一区二区在线播放| 成人av免费网站| 色综合视频在线观看| 欧美丝袜自拍制服另类| 欧美一区二区三区小说| 欧美精品一区二区在线观看| 欧美激情中文字幕一区二区| 怡红院av一区二区三区| 日本不卡一二三| 国产中文字幕精品| 91国在线观看| ww久久中文字幕| 亚洲婷婷综合色高清在线| 爽爽淫人综合网网站| 国产精品白丝jk白祙喷水网站| 性感美女久久精品| 久久 天天综合| 在线观看一区二区精品视频| 欧美videos中文字幕| 一区精品在线播放| 精品一区二区三区欧美| 色综合久久久久综合| 久久精品在这里| 偷拍一区二区三区| 99精品偷自拍| 精品国产免费一区二区三区香蕉| 91精品在线免费| 日韩美女精品在线| 国产精品伊人色| 51精品久久久久久久蜜臀| 中文字幕乱码日本亚洲一区二区| 久久久三级国产网站| 亚洲影视在线播放| 国产精品一二一区| 精品入口麻豆88视频| 香蕉久久一区二区不卡无毒影院 | 在线观看91精品国产入口| 久久久亚洲国产美女国产盗摄| 日韩欧美国产一区二区三区| 亚洲丝袜美腿综合| 处破女av一区二区| 精品久久久久久最新网址| 亚洲va欧美va天堂v国产综合| 亚洲美女屁股眼交| 成人午夜av影视| 日韩欧美一区二区三区在线| 偷拍亚洲欧洲综合| 欧美日韩国产综合视频在线观看 | 日韩伦理av电影| 国产成人在线视频网址| 欧美tickling挠脚心丨vk| 亚洲第一主播视频| 欧美日免费三级在线| 亚洲欧美偷拍另类a∨色屁股| 亚洲国产人成综合网站| www.欧美日韩| 中文字幕欧美日韩一区| 成人精品鲁一区一区二区| 久久久久久夜精品精品免费| 国产尤物一区二区| 国产日韩影视精品| 波多野结衣精品在线| 亚洲天堂网中文字| 欧洲一区二区av| 天天综合网 天天综合色| 欧美日韩在线精品一区二区三区激情| 日韩午夜激情视频| 秋霞午夜av一区二区三区| 91精品国产一区二区三区蜜臀| 久久久久久久综合日本| 国产不卡视频一区| 中文字幕一区不卡| 欧美色中文字幕| 日韩二区三区在线观看| 欧美精品一区二区蜜臀亚洲| 国产黑丝在线一区二区三区| 亚洲欧洲av色图| 欧美中文字幕不卡| 天天综合色天天| 久久久一区二区三区| fc2成人免费人成在线观看播放| 欧美一区二区三区免费视频| 国产一区二区三区香蕉| 亚洲欧美一区二区三区孕妇| 欧美日韩亚洲高清一区二区| 免费成人av在线播放| 欧美激情在线观看视频免费| 欧美色国产精品| 国产一区在线视频| 一区二区三区视频在线观看| 精品国产自在久精品国产| 色综合一区二区| 欧美一区二区大片| 国产不卡视频在线播放| 偷窥少妇高潮呻吟av久久免费| 92国产精品观看| 麻豆91精品91久久久的内涵| 成人免费小视频| 亚洲精品在线电影| 91国内精品野花午夜精品| 久久66热偷产精品| 亚洲第一综合色| 国产亚洲综合在线| 91精品国产综合久久久蜜臀图片| 一个色在线综合| 久久这里只有精品视频网| 欧美日韩国产天堂| 成a人片国产精品| 久久99精品一区二区三区三区| 日韩欧美中文一区| 欧美性色aⅴ视频一区日韩精品| 专区另类欧美日韩| 国产午夜精品久久久久久久| 欧美日韩国产一区| 91免费视频网| 不卡视频一二三四| 国产在线视频一区二区三区| 日本成人超碰在线观看| 亚洲主播在线观看| 亚洲视频一区二区在线| 亚洲欧洲av另类| 国产精品嫩草影院com| 久久无码av三级| 欧美刺激脚交jootjob| 欧美电影一区二区| 欧美日韩高清不卡| 欧美巨大另类极品videosbest| 免费在线观看不卡| 三级不卡在线观看| 日产国产欧美视频一区精品| 亚洲另类在线视频| 一区二区三区在线影院| 亚洲女人****多毛耸耸8| 成人欧美一区二区三区在线播放| 在线观看日韩av先锋影音电影院| 亚洲成人自拍偷拍| 亚洲福利视频一区| 婷婷综合另类小说色区| 午夜视频一区二区| 亚洲综合在线电影| 亚洲成人av电影在线| 午夜一区二区三区在线观看| 性久久久久久久久久久久| 喷白浆一区二区| 韩国三级在线一区| 国产91富婆露脸刺激对白| 成人小视频免费在线观看| av欧美精品.com| 日本久久精品电影| 欧美一区二区三区四区视频| 欧美成人bangbros| 日本一区二区三区高清不卡| 亚洲视频免费观看| 天天操天天色综合| 国产乱妇无码大片在线观看| 成人激情校园春色| 欧美色手机在线观看| 欧美精品一区二区蜜臀亚洲| 国产清纯白嫩初高生在线观看91 | 972aa.com艺术欧美| 色综合色综合色综合色综合色综合| 亚洲视频综合在线| 午夜久久久久久| 国产毛片精品视频| 欧美专区日韩专区| 精品国产乱码久久久久久闺蜜| 99re8在线精品视频免费播放| 日韩国产精品久久久久久亚洲| 国产精品美女久久久久久久久| 在线播放中文字幕一区| www国产精品av| 亚洲欧美另类久久久精品| 蜜臀国产一区二区三区在线播放|