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

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

?? treemap.java

?? 純java操作系統jnode,安裝簡單和操作簡單的個人使用的Java操作系統
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
		// Link n and child.
		child.right = node;
		node.parent = child;
	}

	/**
	 * Return the node following the given one, or getNil() if there isn't one.
	 * Package visible for use by nested classes.
	 *
	 * @param node the current node, not getNil()
	 * @return the next node in sorted order
	 */
	final Node successor(Node node) {
		if (node.right != getNil()) {
			node = node.right;
			while (node.left != getNil())
				node = node.left;
			return node;
		}

		Node parent = node.parent;
		// Exploit fact that getNil().right == getNil() and node is non-getNil().
		while (node == parent.right) {
			node = parent;
			parent = parent.parent;
		}
		return parent;
	}

	/**
	 * Serializes this object to the given stream.
	 *
	 * @param s the stream to write to
	 * @throws IOException if the underlying stream fails
	 * @serialData the <i>size</i> (int), followed by key (Object) and value
	 *             (Object) pairs in sorted order
	 */
	private void writeObject(ObjectOutputStream s) throws IOException {
		s.defaultWriteObject();

		Node node = firstNode();
		s.writeInt(size);
		while (node != getNil()) {
			s.writeObject(node.key);
			s.writeObject(node.value);
			node = successor(node);
		}
	}

	/**
	 * Iterate over HashMap's entries. This implementation is parameterized
	 * to give a sequential view of keys, values, or entries.
	 *
	 * @author Eric Blake <ebb9@email.byu.edu>
	 */
	private final class TreeIterator implements Iterator {
		/**
		 * The type of this Iterator: {@link #KEYS}, {@link #VALUES},
		 * or {@link #ENTRIES}.
		 */
		private final int type;
		/** The number of modifications to the backing Map that we know about. */
		private int knownMod = modCount;
		/** The last Entry returned by a next() call. */
		private Node last;
		/** The next entry that should be returned by next(). */
		private Node next;
		/**
		 * The last node visible to this iterator. This is used when iterating
		 * on a SubMap.
		 */
		private final Node max;

		/**
		 * Construct a new TreeIterator with the supplied type.
		 * @param type {@link #KEYS}, {@link #VALUES}, or {@link #ENTRIES}
		 */
		TreeIterator(int type) {
			// FIXME gcj cannot handle this. Bug java/4695
			// this(type, firstNode(), getNil());
			this.type = type;
			this.next = firstNode();
			this.max = getNil();
		}

		/**
		 * Construct a new TreeIterator with the supplied type. Iteration will
		 * be from "first" (inclusive) to "max" (exclusive).
		 *
		 * @param type {@link #KEYS}, {@link #VALUES}, or {@link #ENTRIES}
		 * @param first where to start iteration, getNil() for empty iterator
		 * @param max the cutoff for iteration, getNil() for all remaining nodes
		 */
		TreeIterator(int type, Node first, Node max) {
			this.type = type;
			this.next = first;
			this.max = max;
		}

		/**
		 * Returns true if the Iterator has more elements.
		 * @return true if there are more elements
		 * @throws ConcurrentModificationException if the TreeMap was modified
		 */
		public boolean hasNext() {
			if (knownMod != modCount)
				throw new ConcurrentModificationException();
			return next != max;
		}

		/**
		 * Returns the next element in the Iterator's sequential view.
		 * @return the next element
		 * @throws ConcurrentModificationException if the TreeMap was modified
		 * @throws NoSuchElementException if there is none
		 */
		public Object next() {
			if (knownMod != modCount)
				throw new ConcurrentModificationException();
			if (next == max)
				throw new NoSuchElementException();
			last = next;
			next = successor(last);

			if (type == VALUES)
				return last.value;
			else if (type == KEYS)
				return last.key;
			return last;
		}

		/**
		 * Removes from the backing TreeMap the last element which was fetched
		 * with the <code>next()</code> method.
		 * @throws ConcurrentModificationException if the TreeMap was modified
		 * @throws IllegalStateException if called when there is no last element
		 */
		public void remove() {
			if (last == null)
				throw new IllegalStateException();
			if (knownMod != modCount)
				throw new ConcurrentModificationException();

			removeNode(last);
			last = null;
			knownMod++;
		}
	} // class TreeIterator

	/**
	 * Implementation of {@link #subMap(Object, Object)} and other map
	 * ranges. This class provides a view of a portion of the original backing
	 * map, and throws {@link IllegalArgumentException} for attempts to
	 * access beyond that range.
	 *
	 * @author Eric Blake <ebb9@email.byu.edu>
	 */
	private final class SubMap extends AbstractMap implements SortedMap {
		/**
		 * The lower range of this view, inclusive, or getNil() for unbounded.
		 * Package visible for use by nested classes.
		 */
		final Object minKey;

		/**
		 * The upper range of this view, exclusive, or getNil() for unbounded.
		 * Package visible for use by nested classes.
		 */
		final Object maxKey;

		/**
		 * The cache for {@link #entrySet()}.
		 */
		private Set entries;

		/**
		 * Create a SubMap representing the elements between minKey (inclusive)
		 * and maxKey (exclusive). If minKey is getNil(), SubMap has no lower bound
		 * (headMap). If maxKey is getNil(), the SubMap has no upper bound (tailMap).
		 *
		 * @param minKey the lower bound
		 * @param maxKey the upper bound
		 * @throws IllegalArgumentException if minKey &gt; maxKey
		 */
		SubMap(Object minKey, Object maxKey) {
			if (minKey != getNil() && maxKey != getNil() && compare(minKey, maxKey) > 0)
				throw new IllegalArgumentException("fromKey > toKey");
			this.minKey = minKey;
			this.maxKey = maxKey;
		}

		/**
		 * Check if "key" is in within the range bounds for this SubMap. The
		 * lower ("from") SubMap range is inclusive, and the upper ("to") bound
		 * is exclusive. Package visible for use by nested classes.
		 *
		 * @param key the key to check
		 * @return true if the key is in range
		 */
		final boolean keyInRange(Object key) {
			return ((minKey == getNil() || compare(key, minKey) >= 0) && (maxKey == getNil() || compare(key, maxKey) < 0));
		}

		public void clear() {
			Node next = lowestGreaterThan(minKey, true);
			Node max = lowestGreaterThan(maxKey, false);
			while (next != max) {
				Node current = next;
				next = successor(current);
				removeNode(current);
			}
		}

		public Comparator comparator() {
			return comparator;
		}

		public boolean containsKey(Object key) {
			return keyInRange(key) && TreeMap.this.containsKey(key);
		}

		public boolean containsValue(Object value) {
			Node node = lowestGreaterThan(minKey, true);
			Node max = lowestGreaterThan(maxKey, false);
			while (node != max) {
				if (equals(value, node.getValue()))
					return true;
				node = successor(node);
			}
			return false;
		}

		public Set entrySet() {
			if (entries == null)
				// Create an AbstractSet with custom implementations of those methods
				// that can be overriden easily and efficiently.
				entries = new AbstractSet() {
				public int size() {
					return SubMap.this.size();
				}

				public Iterator iterator() {
					Node first = lowestGreaterThan(minKey, true);
					Node max = lowestGreaterThan(maxKey, false);
					return new TreeIterator(ENTRIES, first, max);
				}

				public void clear() {
					SubMap.this.clear();
				}

				public boolean contains(Object o) {
					if (!(o instanceof Map.Entry))
						return false;
					Map.Entry me = (Map.Entry) o;
					Object key = me.getKey();
					if (!keyInRange(key))
						return false;
					Node n = getNode(key);
					return n != getNil() && AbstractSet.equals(me.getValue(), n.value);
				}

				public boolean remove(Object o) {
					if (!(o instanceof Map.Entry))
						return false;
					Map.Entry me = (Map.Entry) o;
					Object key = me.getKey();
					if (!keyInRange(key))
						return false;
					Node n = getNode(key);
					if (n != getNil() && AbstractSet.equals(me.getValue(), n.value)) {
						removeNode(n);
						return true;
					}
					return false;
				}
			};
			return entries;
		}

		public Object firstKey() {
			Node node = lowestGreaterThan(minKey, true);
			if (node == getNil() || !keyInRange(node.key))
				throw new NoSuchElementException();
			return node.key;
		}

		public Object get(Object key) {
			if (keyInRange(key))
				return TreeMap.this.get(key);
			return null;
		}

		public SortedMap headMap(Object toKey) {
			if (!keyInRange(toKey))
				throw new IllegalArgumentException("key outside range");
			return new SubMap(minKey, toKey);
		}

		public Set keySet() {
			if (this.keys == null)
				// Create an AbstractSet with custom implementations of those methods
				// that can be overriden easily and efficiently.
				this.keys = new AbstractSet() {
				public int size() {
					return SubMap.this.size();
				}

				public Iterator iterator() {
					Node first = lowestGreaterThan(minKey, true);
					Node max = lowestGreaterThan(maxKey, false);
					return new TreeIterator(KEYS, first, max);
				}

				public void clear() {
					SubMap.this.clear();
				}

				public boolean contains(Object o) {
					if (!keyInRange(o))
						return false;
					return getNode(o) != getNil();
				}

				public boolean remove(Object o) {
					if (!keyInRange(o))
						return false;
					Node n = getNode(o);
					if (n != getNil()) {
						removeNode(n);
						return true;
					}
					return false;
				}
			};
			return this.keys;
		}

		public Object lastKey() {
			Node node = highestLessThan(maxKey);
			if (node == getNil() || !keyInRange(node.key))
				throw new NoSuchElementException();
			return node.key;
		}

		public Object put(Object key, Object value) {
			if (!keyInRange(key))
				throw new IllegalArgumentException("Key outside range");
			return TreeMap.this.put(key, value);
		}

		public Object remove(Object key) {
			if (keyInRange(key))
				return TreeMap.this.remove(key);
			return null;
		}

		public int size() {
			Node node = lowestGreaterThan(minKey, true);
			Node max = lowestGreaterThan(maxKey, false);
			int count = 0;
			while (node != max) {
				count++;
				node = successor(node);
			}
			return count;
		}

		public SortedMap subMap(Object fromKey, Object toKey) {
			if (!keyInRange(fromKey) || !keyInRange(toKey))
				throw new IllegalArgumentException("key outside range");
			return new SubMap(fromKey, toKey);
		}

		public SortedMap tailMap(Object fromKey) {
			if (!keyInRange(fromKey))
				throw new IllegalArgumentException("key outside range");
			return new SubMap(fromKey, maxKey);
		}

		public Collection values() {
			if (this.values == null)
				// Create an AbstractCollection with custom implementations of those
				// methods that can be overriden easily and efficiently.
				this.values = new AbstractCollection() {
				public int size() {
					return SubMap.this.size();
				}

				public Iterator iterator() {
					Node first = lowestGreaterThan(minKey, true);
					Node max = lowestGreaterThan(maxKey, false);
					return new TreeIterator(VALUES, first, max);
				}

				public void clear() {
					SubMap.this.clear();
				}
			};
			return this.values;
		}
	} // class SubMap  
} // class TreeMap

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97久久久精品综合88久久| 成人伦理片在线| 成人性色生活片| 欧美精品久久天天躁| 日本一区二区综合亚洲| 亚洲第一电影网| 成人精品国产免费网站| 日韩欧美国产三级电影视频| 亚洲激情六月丁香| 国产在线视频一区二区| 韩国一区二区三区| 亚洲欧洲日产国产综合网| 欧美亚洲愉拍一区二区| 国产三级精品视频| 91蜜桃免费观看视频| 福利一区二区在线观看| 亚洲女子a中天字幕| 亚洲香肠在线观看| jlzzjlzz亚洲女人18| 亚洲高清免费观看| 北岛玲一区二区三区四区| 色综合视频在线观看| 日韩电影在线一区| 欧美视频在线不卡| 99久久亚洲一区二区三区青草| av资源网一区| 国产精品一区二区免费不卡| 国产精品资源站在线| 337p粉嫩大胆噜噜噜噜噜91av| 久久久蜜臀国产一区二区| 五月婷婷激情综合| 色哟哟欧美精品| 中文字幕日韩欧美一区二区三区| 国产福利一区二区三区视频在线| 欧美电影免费观看高清完整版在线| 天天av天天翘天天综合网色鬼国产 | 欧美一区二区视频在线观看2022| 亚洲精品成人悠悠色影视| 色婷婷激情一区二区三区| 亚洲精品免费在线| 欧美丝袜丝交足nylons图片| 一区二区三区在线观看动漫| 日本道精品一区二区三区| 亚洲日本韩国一区| 欧美天堂亚洲电影院在线播放| 亚洲成人www| 91精品国产综合久久久久| 秋霞影院一区二区| 久久综合精品国产一区二区三区| 国产精品资源在线| 日韩码欧中文字| 欧美性受xxxx| 蜜臀av一区二区| 2023国产精品自拍| 成人爽a毛片一区二区免费| 日韩毛片精品高清免费| 欧美久久一区二区| 另类小说图片综合网| 欧美国产视频在线| 91理论电影在线观看| 天天操天天干天天综合网| 2020国产精品自拍| 99国产精品久久久| 免费日本视频一区| 国产午夜亚洲精品理论片色戒| 色综合天天综合色综合av | 美女诱惑一区二区| 中文字幕在线观看不卡| 欧美体内she精高潮| 国产精品影视网| 亚洲综合一区二区| 久久一夜天堂av一区二区三区| 91麻豆文化传媒在线观看| 免费成人在线播放| 最新热久久免费视频| 日韩亚洲欧美综合| eeuss鲁片一区二区三区在线观看| 日韩精品国产欧美| 国产精品卡一卡二| 日韩视频永久免费| 91网上在线视频| 国产一区二区福利视频| 午夜久久福利影院| 成人欧美一区二区三区在线播放| 欧美一级生活片| 色综合久久综合中文综合网| 国产综合色视频| 亚洲mv在线观看| ㊣最新国产の精品bt伙计久久| 精品国产三级a在线观看| 色天使色偷偷av一区二区| 国产一区二区三区久久久| 婷婷久久综合九色国产成人| 亚洲天堂av老司机| 国产亚洲综合av| 日韩欧美不卡在线观看视频| 欧美日本免费一区二区三区| 91亚洲精华国产精华精华液| 国产精品亚洲专一区二区三区 | 久久精品亚洲精品国产欧美kt∨| 在线播放国产精品二区一二区四区| 国产精品99精品久久免费| 麻豆一区二区99久久久久| 亚洲sss视频在线视频| 一区二区高清视频在线观看| 一区二区中文视频| 国产精品高清亚洲| 国产精品久久毛片av大全日韩| 久久色.com| 337p粉嫩大胆色噜噜噜噜亚洲 | 国产在线精品免费av| 免费不卡在线视频| 蜜臀久久99精品久久久久宅男| 丝袜美腿亚洲色图| 午夜精品一区二区三区电影天堂 | 久久综合视频网| 26uuu国产电影一区二区| 欧美tk丨vk视频| 2023国产精品视频| 国产欧美精品在线观看| 国产女同性恋一区二区| 国产精品电影一区二区| 亚洲精品日韩综合观看成人91| 欧美国产激情一区二区三区蜜月| 久久久不卡网国产精品一区| 久久久久久久久久电影| 久久精品一区二区三区不卡 | 成人爱爱电影网址| 波多野洁衣一区| 色狠狠色狠狠综合| 欧美日韩精品三区| 欧美成人精品1314www| 国产香蕉久久精品综合网| 日本一区二区三区在线观看| 亚洲欧美日韩国产一区二区三区| 亚洲激情在线激情| 日本不卡高清视频| 高清在线观看日韩| 色狠狠桃花综合| 欧美一区二区三区喷汁尤物| 精品国产99国产精品| 国产精品护士白丝一区av| 亚洲成av人片一区二区梦乃| 久久99精品国产| 99精品热视频| 在线成人免费视频| 中文无字幕一区二区三区| 夜夜嗨av一区二区三区中文字幕| 日韩高清欧美激情| 国产成人综合网| 欧美性猛片aaaaaaa做受| 精品国产人成亚洲区| 亚洲女厕所小便bbb| 久久国产剧场电影| 色综合久久88色综合天天免费| 日韩欧美色综合| 亚洲免费成人av| 韩国精品一区二区| 在线观看网站黄不卡| 久久先锋资源网| 亚洲成av人在线观看| 成人精品国产福利| 日韩欧美国产综合一区| 亚洲欧美一区二区三区极速播放| 蜜桃av噜噜一区| 欧美曰成人黄网| 欧美激情资源网| 蜜臀av一区二区在线观看| 在线一区二区三区四区五区| 国产欧美日韩三级| 久久99久国产精品黄毛片色诱| 91久久精品网| 国产午夜久久久久| 久久电影国产免费久久电影| 欧美三级电影网| 中文字幕亚洲一区二区va在线| 六月丁香婷婷久久| 欧美日韩国产在线观看| 中文字幕一区视频| 国产91在线观看| 久久综合九色综合欧美亚洲| 免费精品99久久国产综合精品| 在线观看亚洲精品视频| 《视频一区视频二区| 丁香婷婷综合网| 久久久一区二区三区捆绑**| 免费人成精品欧美精品| 欧美久久久一区| 亚洲线精品一区二区三区八戒| 色呦呦国产精品| 亚洲人成网站在线| 95精品视频在线| 亚洲欧美自拍偷拍| 97se狠狠狠综合亚洲狠狠| 亚洲欧美在线视频观看| 色综合久久久久综合体桃花网| 国产精品国产三级国产普通话99 | 欧美少妇性性性| 亚洲午夜精品网| 欧美在线你懂的|