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

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

?? treemap.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
     * For 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 strictly     * greater than <tt>low</tt>: <pre>     *     SortedMap tail = m.tailMap(low+"\0");     * </pre>     *     * @param fromKey low endpoint (inclusive) of the tailMap.     * @return a view of the portion of this map whose keys are greater     *                than or equal to <tt>fromKey</tt>.     * @throws ClassCastException if <tt>fromKey</tt> is not compatible     *         with this map's comparator (or, if the map has no comparator,     *         if <tt>fromKey</tt> does not implement <tt>Comparable</tt>).     * @throws IllegalArgumentException if this map is itself a subMap,     *         headMap, or tailMap, and <tt>fromKey</tt> is not within the     *         specified range of the subMap, headMap, or tailMap.     * @throws NullPointerException if <tt>fromKey</tt> is <tt>null</tt> and     *               this map uses natural order, or its comparator does not     *               tolerate <tt>null</tt> keys.     */    public SortedMap tailMap(Object fromKey) {        return new SubMap(fromKey, false);    }    private class SubMap extends AbstractMap                             implements SortedMap, java.io.Serializable {        private static final long serialVersionUID = -6520786458950516097L;        /**         * fromKey is significant only if fromStart is false.  Similarly,         * toKey is significant only if toStart is false.         */        private boolean fromStart = false, toEnd = false;        private Object  fromKey,           toKey;        SubMap(Object fromKey, Object toKey) {            if (compare(fromKey, toKey) > 0)                throw new IllegalArgumentException("fromKey > toKey");            this.fromKey = fromKey;            this.toKey = toKey;        }        SubMap(Object key, boolean headMap) {            compare(key, key); // Type-check key            if (headMap) {                fromStart = true;                toKey = key;            } else {                toEnd = true;                fromKey = key;            }        }        SubMap(boolean fromStart, Object fromKey, boolean toEnd, Object toKey){            this.fromStart = fromStart;            this.fromKey= fromKey;            this.toEnd = toEnd;            this.toKey = toKey;        }        public boolean isEmpty() {            return entrySet.isEmpty();        }        public boolean containsKey(Object key) {            return inRange(key) && TreeMap.this.containsKey(key);        }        public Object get(Object key) {            if (!inRange(key))                return null;            return TreeMap.this.get(key);        }        public Object put(Object key, Object value) {            if (!inRange(key))                throw new IllegalArgumentException("key out of range");            return TreeMap.this.put(key, value);        }        public Comparator comparator() {            return comparator;        }        public Object firstKey() {            Object first = key(fromStart ? firstEntry():getCeilEntry(fromKey));            if (!toEnd && compare(first, toKey) >= 0)                throw(new NoSuchElementException());            return first;        }        public Object lastKey() {            Object last = key(toEnd ? lastEntry() : getPrecedingEntry(toKey));            if (!fromStart && compare(last, fromKey) < 0)                throw(new NoSuchElementException());            return last;        }        private transient Set entrySet = new EntrySetView();        public Set entrySet() {            return entrySet;        }        private class EntrySetView extends AbstractSet {            private transient int size = -1, sizeModCount;            public int size() {                if (size == -1 || sizeModCount != TreeMap.this.modCount) {                    size = 0;  sizeModCount = TreeMap.this.modCount;                    Iterator i = iterator();                    while (i.hasNext()) {                        size++;                        i.next();                    }                }                return size;            }            public boolean isEmpty() {                return !iterator().hasNext();            }            public boolean contains(Object o) {                if (!(o instanceof Map.Entry))                    return false;                Map.Entry entry = (Map.Entry)o;                Object key = entry.getKey();                if (!inRange(key))                    return false;                TreeMap.Entry node = getEntry(key);                return node != null &&                       valEquals(node.getValue(), entry.getValue());            }            public boolean remove(Object o) {                if (!(o instanceof Map.Entry))                    return false;                Map.Entry entry = (Map.Entry)o;                Object key = entry.getKey();                if (!inRange(key))                    return false;                TreeMap.Entry node = getEntry(key);                if (node!=null && valEquals(node.getValue(),entry.getValue())){                    deleteEntry(node);                    return true;                }                return false;            }            public Iterator iterator() {                return new SubMapEntryIterator(                    (fromStart ? firstEntry() : getCeilEntry(fromKey)),                    (toEnd     ? null         : getCeilEntry(toKey)));            }        }        public SortedMap subMap(Object fromKey, Object toKey) {            if (!inRange2(fromKey))                throw new IllegalArgumentException("fromKey out of range");            if (!inRange2(toKey))                throw new IllegalArgumentException("toKey out of range");            return new SubMap(fromKey, toKey);        }        public SortedMap headMap(Object toKey) {            if (!inRange2(toKey))                throw new IllegalArgumentException("toKey out of range");            return new SubMap(fromStart, fromKey, false, toKey);        }        public SortedMap tailMap(Object fromKey) {            if (!inRange2(fromKey))                throw new IllegalArgumentException("fromKey out of range");            return new SubMap(false, fromKey, toEnd, toKey);        }        private boolean inRange(Object key) {            return (fromStart || compare(key, fromKey) >= 0) &&                   (toEnd     || compare(key, toKey)   <  0);        }        // This form allows the high endpoint (as well as all legit keys)        private boolean inRange2(Object key) {            return (fromStart || compare(key, fromKey) >= 0) &&                   (toEnd     || compare(key, toKey)   <= 0);        }    }    /**     * TreeMap Iterator.     */    private class EntryIterator implements Iterator {        private int expectedModCount = TreeMap.this.modCount;        private Entry lastReturned = null;        Entry next;        EntryIterator() {            next = firstEntry();        }        // Used by SubMapEntryIterator        EntryIterator(Entry first) {            next = first;        }        public boolean hasNext() {            return next != null;        }        final Entry nextEntry() {            if (next == null)                throw new NoSuchElementException();            if (modCount != expectedModCount)                throw new ConcurrentModificationException();            lastReturned = next;            next = successor(next);            return lastReturned;        }        public Object next() {            return nextEntry();        }        public void remove() {            if (lastReturned == null)                throw new IllegalStateException();            if (modCount != expectedModCount)                throw new ConcurrentModificationException();            if (lastReturned.left != null && lastReturned.right != null)                 next = lastReturned;             deleteEntry(lastReturned);            expectedModCount++;            lastReturned = null;        }    }    private class KeyIterator extends EntryIterator {        public Object next() {            return nextEntry().key;        }    }    private class ValueIterator extends EntryIterator {        public Object next() {            return nextEntry().value;        }    }    private class SubMapEntryIterator extends EntryIterator {        private final Object firstExcludedKey;        SubMapEntryIterator(Entry first, Entry firstExcluded) {            super(first);            firstExcludedKey = (firstExcluded == null ?                                firstExcluded : firstExcluded.key);        }        public boolean hasNext() {            return next != null && next.key != firstExcludedKey;        }        public Object next() {            if (next == null || next.key == firstExcludedKey)                throw new NoSuchElementException();            return nextEntry();        }    }    /**     * Compares two keys using the correct comparison method for this TreeMap.     */    private int compare(Object k1, Object k2) {        return (comparator==null ? ((Comparable)k1).compareTo(k2)                                 : comparator.compare(k1, k2));    }    /**     * Test two values  for equality.  Differs from o1.equals(o2) only in     * that it copes with with <tt>null</tt> o1 properly.     */    private static boolean valEquals(Object o1, Object o2) {        return (o1==null ? o2==null : o1.equals(o2));    }    private static final boolean RED   = false;    private static final boolean BLACK = true;    /**     * Node in the Tree.  Doubles as a means to pass key-value pairs back to     * user (see Map.Entry).     */    static class Entry implements Map.Entry {        Object key;        Object value;        Entry left = null;        Entry right = null;        Entry parent;        boolean color = BLACK;        /**         * Make a new cell with given key, value, and parent, and with          * <tt>null</tt> child links, and BLACK color.          */        Entry(Object key, Object value, Entry parent) {             this.key = key;            this.value = value;            this.parent = parent;        }        /**         * Returns the key.         *         * @return the key.         */        public Object getKey() {             return key;         }        /**         * Returns the value associated with the key.         *         * @return the value associated with the key.         */        public Object getValue() {            return value;        }        /**         * Replaces the value currently associated with the key with the given         * value.         *         * @return the value associated with the key before this method was         *           called.         */        public Object setValue(Object value) {            Object oldValue = this.value;            this.value = value;            return oldValue;        }        public boolean equals(Object o) {            if (!(o instanceof Map.Entry))                return false;            Map.Entry e = (Map.Entry)o;            return valEquals(key,e.getKey()) && valEquals(value,e.getValue());        }        public int hashCode() {            int keyHash = (key==null ? 0 : key.hashCode());            int valueHash = (value==null ? 0 : value.hashCode());            return keyHash ^ valueHash;        }        public String toString() {            return key + "=" + value;        }    }    /**     * Returns the first Entry in the TreeMap (according to the TreeMap's     * key-sort function).  Returns null if the TreeMap is empty.     */    private Entry firstEntry() {        Entry p = root;        if (p != null)            while (p.left != null)                p = p.left;        return p;    }    /**     * Returns the last Entry in the TreeMap (according to the TreeMap's     * key-sort function).  Returns null if the TreeMap is empty.     */    private Entry lastEntry() {        Entry p = root;        if (p != null)            while (p.right != null)                p = p.right;        return p;    }    /**     * Returns the successor of the specified Entry, or null if no such.     */    private Entry successor(Entry t) {        if (t == null)            return null;        else if (t.right != null) {            Entry p = t.right;            while (p.left != null)                p = p.left;            return p;        } else {            Entry p = t.parent;            Entry ch = t;            while (p != null && ch == p.right) {                ch = p;                p = p.parent;            }            return p;        }    }    /**     * Balancing operations.     *     * Implementations of rebalancings during insertion and deletion are     * slightly different than the CLR version.  Rather than using dummy     * nilnodes, we use a set of accessors that deal properly with null.  They     * are used to avoid messiness surrounding nullness checks in the main

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
ww亚洲ww在线观看国产| 中文字幕不卡三区| 亚洲国产视频一区二区| 色综合 综合色| 亚洲激情av在线| 欧美日韩一区二区欧美激情 | 久久久精品人体av艺术| 国产在线播精品第三| 亚洲乱码国产乱码精品精可以看| 成人午夜激情影院| 伊人色综合久久天天人手人婷| 色视频欧美一区二区三区| 亚洲第一二三四区| 精品处破学生在线二十三| 亚洲国产精品久久人人爱| 欧美三级日韩在线| 久久草av在线| 国产精品美女一区二区三区 | 亚洲精选一二三| 欧美男生操女生| 国产福利视频一区二区三区| 最新热久久免费视频| 欧美精品vⅰdeose4hd| 国产精品1区2区3区| 亚洲精品国产品国语在线app| 日韩一区二区三区四区五区六区 | 亚洲成在线观看| 久久久亚洲精品一区二区三区| 99re这里都是精品| 轻轻草成人在线| 国产精品福利一区二区三区| 欧美一区二区三区的| 成人黄色av电影| 男人的j进女人的j一区| 综合色天天鬼久久鬼色| 欧美成人精精品一区二区频| 91美女精品福利| 韩国v欧美v亚洲v日本v| 亚洲午夜激情网页| 日本一二三不卡| 日韩视频免费观看高清完整版 | 韩国视频一区二区| 一区二区日韩电影| 中文字幕成人在线观看| 欧美一区二区在线免费播放 | 国产精品一卡二| 日韩精品高清不卡| 亚洲天堂网中文字| 久久久久久毛片| 91精品国产免费| 欧美视频在线观看一区| 不卡视频在线看| 国产精品一区二区x88av| 日日夜夜免费精品| 一片黄亚洲嫩模| 国产精品国产精品国产专区不蜜 | 国产大陆a不卡| 久久国产乱子精品免费女| 亚洲国产成人porn| 一级日本不卡的影视| 国产精品久久久久久久久快鸭| 久久婷婷综合激情| 日韩久久免费av| 在线播放日韩导航| 欧美日韩一区二区三区在线看| 97久久超碰国产精品电影| 成人免费毛片嘿嘿连载视频| 国产一区二区三区av电影 | 亚洲大片精品永久免费| 亚洲精品乱码久久久久久久久| 国产精品久久久久久久久果冻传媒| 久久夜色精品一区| 久久综合色综合88| 精品久久国产字幕高潮| 日韩天堂在线观看| 欧美成人精品高清在线播放| 91麻豆精品国产91久久久久久久久 | 26uuu久久综合| 久久新电视剧免费观看| 国产视频在线观看一区二区三区| wwwwww.欧美系列| 久久久www成人免费毛片麻豆| 久久―日本道色综合久久| 久久精品人人做人人爽97| 久久精品人人做| 国产精品国产三级国产有无不卡| 亚洲欧美在线高清| 亚洲色图19p| 亚洲国产wwwccc36天堂| 日韩和欧美一区二区| 另类小说视频一区二区| 久久国产尿小便嘘嘘| 国产91丝袜在线播放0| 成人avav影音| 欧美日韩一区二区三区在线| 欧美一区二区三区四区高清| 久久综合久久鬼色| 国产精品午夜久久| 亚洲一区二区三区自拍| 日本美女一区二区三区视频| 国产一区免费电影| 色综合亚洲欧洲| 欧美一区二区在线播放| 国产日韩v精品一区二区| ㊣最新国产の精品bt伙计久久| 午夜影视日本亚洲欧洲精品| 久久99精品久久久久久国产越南 | 亚洲va中文字幕| 久久99热狠狠色一区二区| 成人美女在线视频| 欧美午夜精品免费| 2023国产精品| 中文字幕亚洲一区二区va在线| 亚洲丝袜另类动漫二区| 亚洲国产欧美在线| 国产揄拍国内精品对白| 91美女精品福利| 日韩午夜av一区| 亚洲欧美激情视频在线观看一区二区三区| 亚洲一级二级在线| 国产精品综合视频| 欧美午夜视频网站| 国产亚洲婷婷免费| 日韩在线一二三区| 国产高清一区日本| 51精品秘密在线观看| 国产精品久久久久影院老司| 奇米影视在线99精品| 91在线免费视频观看| 欧美电影免费观看高清完整版在线 | 色婷婷亚洲婷婷| 26uuu亚洲综合色欧美| 一区二区三区四区五区视频在线观看| 激情图片小说一区| 欧美麻豆精品久久久久久| 国产精品美女久久久久久| 久久99国产精品久久99| 欧美午夜影院一区| 中文字幕一区不卡| 国产一区二区三区免费看| 91精品啪在线观看国产60岁| 亚洲免费电影在线| 成人午夜伦理影院| 国产午夜一区二区三区| 美女脱光内衣内裤视频久久影院| 91成人在线免费观看| 国产精品久久久久久久久久免费看 | 日韩一区在线播放| 国产一区不卡精品| 日韩一区二区在线看| 亚洲成人av一区二区三区| 91在线国内视频| 亚洲国产精品成人综合色在线婷婷 | 久久在线观看免费| 麻豆成人av在线| 欧美一区二区三区在线| 亚洲第一狼人社区| 亚洲日本乱码在线观看| 免费一级片91| 欧美日韩电影在线| 午夜精彩视频在线观看不卡| 91天堂素人约啪| 亚洲天堂av一区| 99久久精品99国产精品| 亚洲国产精品成人久久综合一区| 国产一区免费电影| www精品美女久久久tv| 热久久国产精品| 日韩精品中文字幕在线一区| 男女激情视频一区| 日韩一区二区三区电影| 蜜桃视频免费观看一区| 日韩欧美国产电影| 国产麻豆精品在线观看| 久久九九久久九九| 懂色av一区二区三区免费观看| 天堂久久一区二区三区| 欧美日韩国产经典色站一区二区三区| 亚洲黄色小说网站| 欧美日韩成人综合| 蜜桃久久久久久久| 精品精品欲导航| 国产精品1024| 日韩美女视频19| 久久婷婷色综合| 亚洲综合免费观看高清完整版| 色综合av在线| 日韩在线卡一卡二| 精品国产免费视频| 国产a区久久久| 亚洲欧美日韩一区二区| 69堂成人精品免费视频| 精品一区二区三区日韩| 中文字幕欧美日韩一区| 在线精品视频一区二区| 蜜臀精品久久久久久蜜臀 | 欧美另类一区二区三区| 国内精品不卡在线| 1024精品合集| 91精品国产91久久久久久一区二区 |