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

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

?? treeset.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * @(#)TreeSet.java	1.27 06/10/10 * * Copyright  1990-2008 Sun Microsystems, Inc. All Rights Reserved.   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER   *    * This program is free software; you can redistribute it and/or   * modify it under the terms of the GNU General Public License version   * 2 only, as published by the Free Software Foundation.    *    * This program is distributed in the hope that it will be useful, but   * WITHOUT ANY WARRANTY; without even the implied warranty of   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   * General Public License version 2 for more details (a copy is   * included at /legal/license.txt).    *    * You should have received a copy of the GNU General Public License   * version 2 along with this work; if not, write to the Free Software   * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA   * 02110-1301 USA    *    * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa   * Clara, CA 95054 or visit www.sun.com if you need additional   * information or have any questions.  * */package java.util;/** * This class implements the <tt>Set</tt> interface, backed by a * <tt>TreeMap</tt> instance.  This class guarantees that the sorted set will * be in ascending element order, sorted according to the <i>natural order</i> * of the elements (see <tt>Comparable</tt>), or by the comparator provided at * set creation time, depending on which constructor is used.<p> * * This implementation provides guaranteed log(n) time cost for the basic * operations (<tt>add</tt>, <tt>remove</tt> and <tt>contains</tt>).<p> * * Note that the ordering maintained by a set (whether or not an explicit * comparator is provided) must be <i>consistent with equals</i> if it is to * correctly implement the <tt>Set</tt> interface.  (See <tt>Comparable</tt> * or <tt>Comparator</tt> for a precise definition of <i>consistent with * equals</i>.)  This is so because the <tt>Set</tt> interface is defined in * terms of the <tt>equals</tt> operation, but a <tt>TreeSet</tt> instance * performs all key comparisons using its <tt>compareTo</tt> (or * <tt>compare</tt>) method, so two keys that are deemed equal by this method * are, from the standpoint of the set, equal.  The behavior of a set * <i>is</i> well-defined even if its ordering is inconsistent with equals; it * just fails to obey the general contract of the <tt>Set</tt> interface.<p> * * <b>Note that this implementation is not synchronized.</b> If multiple * threads access a set concurrently, and at least one of the threads modifies * the set, it <i>must</i> be synchronized externally.  This is typically * accomplished by synchronizing on some object that naturally encapsulates * the set.  If no such object exists, the set should be "wrapped" using the * <tt>Collections.synchronizedSet</tt> method.  This is best done at creation * time, to prevent accidental unsynchronized access to the set: <pre> *     SortedSet s = Collections.synchronizedSortedSet(new TreeSet(...)); * </pre><p> * * The Iterators returned by this class's <tt>iterator</tt> method are * <i>fail-fast</i>: if the set is modified at any time after the iterator is * created, in any way except through the iterator's own <tt>remove</tt> * method, the iterator will throw a <tt>ConcurrentModificationException</tt>. * Thus, in the face of concurrent modification, the iterator fails quickly * and cleanly, rather than risking arbitrary, non-deterministic behavior at * an undetermined time in the future. * * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed * as it is, generally speaking, impossible to make any hard guarantees in the * presence of unsynchronized concurrent modification.  Fail-fast iterators * throw <tt>ConcurrentModificationException</tt> on a best-effort basis.  * Therefore, it would be wrong to write a program that depended on this * exception for its correctness:   <i>the fail-fast behavior of iterators * should be used only to detect bugs.</i><p> * * This class is a member of the  * <a href="{@docRoot}/../guide/collections/index.html"> * Java Collections Framework</a>. * * @author  Josh Bloch * @version 1.20, 02/02/00 * @see	    Collection * @see	    Set * @see	    HashSet * @see     Comparable * @see     Comparator * @see	    Collections#synchronizedSortedSet(SortedSet) * @see	    TreeMap * @since   1.2 */public class TreeSet extends AbstractSet		     implements SortedSet, Cloneable, java.io.Serializable{    private transient SortedMap m;	 // The backing Map    private transient Set      	keySet;  // The keySet view of the backing Map    // Dummy value to associate with an Object in the backing Map    private static final Object PRESENT = new Object();    /**     * Constructs a set backed by the specified sorted map.     */    private TreeSet(SortedMap m) {        this.m = m;        keySet = m.keySet();    }    /**     * Constructs a new, empty set, sorted according to the elements' natural     * order.  All elements inserted into the set must implement the     * <tt>Comparable</tt> interface.  Furthermore, all such elements must be     * <i>mutually comparable</i>: <tt>e1.compareTo(e2)</tt> must not throw a     * <tt>ClassCastException</tt> for any elements <tt>e1</tt> and     * <tt>e2</tt> in the set.  If the user attempts to add an element to the     * set that violates this constraint (for example, the user attempts to     * add a string element to a set whose elements are integers), the     * <tt>add(Object)</tt> call will throw a <tt>ClassCastException</tt>.     *      * @see Comparable     */    public TreeSet() {	this(new TreeMap());    }    /**     * Constructs a new, empty set, sorted according to the specified     * comparator.  All elements inserted into the set must be <i>mutually     * comparable</i> by the specified comparator: <tt>comparator.compare(e1,     * e2)</tt> must not throw a <tt>ClassCastException</tt> for any elements     * <tt>e1</tt> and <tt>e2</tt> in the set.  If the user attempts to add     * an element to the set that violates this constraint, the     * <tt>add(Object)</tt> call will throw a <tt>ClassCastException</tt>.     *     * @param c the comparator that will be used to sort this set.  A     *        <tt>null</tt> value indicates that the elements' <i>natural     *        ordering</i> should be used.     */    public TreeSet(Comparator c) {	this(new TreeMap(c));    }    /**     * Constructs a new set containing the elements in the specified     * collection, sorted according to the elements' <i>natural order</i>.     * All keys inserted into the set must implement the <tt>Comparable</tt>     * interface.  Furthermore, all such keys must be <i>mutually     * comparable</i>: <tt>k1.compareTo(k2)</tt> must not throw a     * <tt>ClassCastException</tt> for any elements <tt>k1</tt> and     * <tt>k2</tt> in the set.     *     * @param c The elements that will comprise the new set.     *     * @throws ClassCastException if the keys in the specified collection are     *         not comparable, or are not mutually comparable.     * @throws NullPointerException if the specified collection is null.     */    public TreeSet(Collection c) {        this();        addAll(c);            }    /**     * Constructs a new set containing the same elements as the specified     * sorted set, sorted according to the same ordering.     *     * @param s sorted set whose elements will comprise the new set.     * @throws NullPointerException if the specified sorted set is null.     */    public TreeSet(SortedSet s) {        this(s.comparator());	addAll(s);    }    /**     * Returns an iterator over the elements in this set.  The elements     * are returned in ascending order.     *     * @return an iterator over the elements in this set.     */    public Iterator iterator() {	return keySet.iterator();    }    /**     * Returns the number of elements in this set (its cardinality).     *     * @return the number of elements in this set (its cardinality).     */    public int size() {	return m.size();    }    /**     * Returns <tt>true</tt> if this set contains no elements.     *     * @return <tt>true</tt> if this set contains no elements.     */    public boolean isEmpty() {	return m.isEmpty();    }    /**     * Returns <tt>true</tt> if this set contains the specified element.     *     * @param o the object to be checked for containment in this set.     * @return <tt>true</tt> if this set contains the specified element.     *      * @throws ClassCastException if the specified object cannot be compared     * 		  with the elements currently in the set.     */    public boolean contains(Object o) {	return m.containsKey(o);    }    /**     * Adds the specified element to this set if it is not already present.     *     * @param o element to be added to this set.     * @return <tt>true</tt> if the set did not already contain the specified     *         element.     *      * @throws ClassCastException if the specified object cannot be compared     * 		  with the elements currently in the set.     */    public boolean add(Object o) {	return m.put(o, PRESENT)==null;    }    /**     * Removes the specified element from this set if it is present.     *     * @param o object to be removed from this set, if present.     * @return <tt>true</tt> if the set contained the specified element.     *      * @throws ClassCastException if the specified object cannot be compared     * 		  with the elements currently in the set.     */    public boolean remove(Object o) {	return m.remove(o)==PRESENT;    }    /**     * Removes all of the elements from this set.     */    public void clear() {	m.clear();    }    /**     * Adds all of the elements in the specified collection to this set.     *     * @param c elements to be added

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品婷婷伊人一区三区三| voyeur盗摄精品| 成人性视频网站| 欧美无乱码久久久免费午夜一区 | 蜜臀av国产精品久久久久| 国产69精品一区二区亚洲孕妇 | 日韩精品一区二区三区三区免费 | 日本高清不卡一区| 欧美一级一区二区| 亚洲日本一区二区| 国产激情精品久久久第一区二区| 欧美色视频在线| 自拍偷在线精品自拍偷无码专区| 国产美女精品一区二区三区| 欧美日本一区二区在线观看| 国产精品久久久久久久久晋中| 免费成人美女在线观看.| 欧美在线短视频| 中文字幕亚洲在| 国产成人免费9x9x人网站视频| 欧美一区2区视频在线观看| 亚洲已满18点击进入久久| 91丝袜美女网| 国产精品久久影院| 成人性生交大片免费看在线播放| 精品卡一卡二卡三卡四在线| 日韩精品五月天| 欧美美女一区二区| 亚洲一二三级电影| 欧美性猛交xxxx乱大交退制版| 中文字幕欧美一区| va亚洲va日韩不卡在线观看| 中文字幕久久午夜不卡| 福利一区二区在线| 国产精品亲子乱子伦xxxx裸| 成人国产精品免费观看动漫| 国产精品―色哟哟| 99久久伊人久久99| 成人免费在线视频观看| 91丨porny丨国产入口| 亚洲欧美日韩在线播放| 色婷婷狠狠综合| 亚洲一二三四区不卡| 欧美性大战久久久久久久| 亚洲大片免费看| 91精品欧美福利在线观看| 青青草成人在线观看| 欧美成人女星排名| 国产成人精品综合在线观看| 国产精品福利一区二区| 91极品美女在线| 亚洲午夜羞羞片| 欧美一级日韩一级| 久久99精品国产.久久久久久| 久久尤物电影视频在线观看| 国产91在线观看| 亚洲精品网站在线观看| 欧美性大战久久久| 九色综合狠狠综合久久| 亚洲国产精品精华液ab| 91麻豆.com| 日本vs亚洲vs韩国一区三区 | 91色porny| 亚洲va国产天堂va久久en| 日韩精品一区二区三区四区| 处破女av一区二区| 亚洲一区二区不卡免费| 精品99一区二区| 99久免费精品视频在线观看| 日韩黄色一级片| 日本一区二区三区在线观看| 在线免费观看视频一区| 久久国产精品无码网站| 成人免费小视频| 欧美一卡在线观看| 91亚洲国产成人精品一区二三| 日本大胆欧美人术艺术动态| 国产精品视频yy9299一区| 欧美嫩在线观看| 成人18精品视频| 美女在线观看视频一区二区| 日韩一区欧美一区| 久久综合狠狠综合| 欧美性一二三区| 成人h动漫精品一区二区| 美洲天堂一区二卡三卡四卡视频| 日韩毛片一二三区| 日韩视频在线一区二区| 91亚洲精品一区二区乱码| 精品在线播放免费| 亚洲电影一级片| 亚洲视频1区2区| 国产亲近乱来精品视频| 欧美一卡二卡三卡| 欧美亚日韩国产aⅴ精品中极品| 国产精品系列在线观看| 麻豆91精品视频| 亚洲成人自拍网| 亚洲激情欧美激情| 国产精品欧美久久久久无广告 | 国产尤物一区二区在线| 国产精品网站在线播放| 日韩一区二区三区观看| 日本电影欧美片| 99久久99久久综合| 国产精品资源网站| 久久爱www久久做| 日韩va欧美va亚洲va久久| 一区二区三区国产精品| 成人免费一区二区三区视频| 欧美韩国日本一区| 国产欧美综合在线观看第十页| 日韩视频一区二区在线观看| 在线综合视频播放| 3atv在线一区二区三区| 欧美日韩综合一区| 欧美日韩午夜在线| 精品视频999| 欧美日韩国产欧美日美国产精品| 欧美最猛性xxxxx直播| 色狠狠色狠狠综合| 欧美图片一区二区三区| 色吊一区二区三区| 国产一区二区三区观看| 日本亚洲欧美天堂免费| 首页亚洲欧美制服丝腿| 亚洲国产sm捆绑调教视频| 亚洲一区二区综合| 亚洲成在人线在线播放| 午夜欧美电影在线观看| 日日摸夜夜添夜夜添亚洲女人| 亚洲成人免费电影| 日韩在线一二三区| 免费观看成人av| 国产精品99久| 91视频一区二区三区| 欧美伊人久久大香线蕉综合69| 欧美视频一二三区| 欧美一区二区大片| 国产午夜精品一区二区三区四区| 国产精品久久久久久久久久免费看| 国产精品毛片a∨一区二区三区| 成人三级伦理片| 国产九色精品成人porny| 国产美女一区二区| 成人app软件下载大全免费| 色吊一区二区三区| 欧美一个色资源| 国产精品区一区二区三区| 亚洲三级电影网站| 日韩—二三区免费观看av| 国产精品一二三区| 色综合久久综合| 日韩欧美专区在线| 综合av第一页| 免费精品视频最新在线| 成人毛片在线观看| 欧美群妇大交群中文字幕| 久久综合色之久久综合| 伊人色综合久久天天人手人婷| 三级精品在线观看| 国产91对白在线观看九色| 欧美日韩午夜影院| 国产精品色哟哟网站| 日韩高清在线一区| 91在线无精精品入口| 欧美zozo另类异族| 一级日本不卡的影视| 丁香一区二区三区| 国产成人av一区二区三区在线观看| 成人综合婷婷国产精品久久蜜臀 | 亚洲人成网站精品片在线观看| 人人狠狠综合久久亚洲| av成人免费在线观看| 久久亚洲免费视频| 亚洲第一在线综合网站| 成人伦理片在线| 精品少妇一区二区三区在线播放| 亚洲午夜羞羞片| 91免费在线看| 久久久91精品国产一区二区三区| 日韩电影在线一区二区| 91色.com| 国产精品久久网站| 国内精品免费**视频| 欧美日韩国产乱码电影| 亚洲乱码国产乱码精品精可以看 | 久久婷婷国产综合国色天香| 香蕉影视欧美成人| 日本道精品一区二区三区| 国产欧美1区2区3区| 欧美日韩一区在线| 久久久久久免费毛片精品| 日本系列欧美系列| 欧美日韩亚洲丝袜制服| 亚洲视频一区在线| www.亚洲免费av| 亚洲欧洲国产专区| 成人av电影在线网| 国产精品成人一区二区艾草|