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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? treeset.java

?? gcc-you can use this code to learn something about gcc, and inquire further into linux,
?? JAVA
字號(hào):
/* TreeSet.java -- a class providing a TreeMap-backed SortedSet   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.util;import java.io.IOException;import java.io.Serializable;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;/** * This class provides a TreeMap-backed implementation of the SortedSet * interface. The elements will be sorted according to their <i>natural * order</i>, or according to the provided <code>Comparator</code>.<p> * * Most operations are O(log n), but there is so much overhead that this * makes small sets expensive. Note that the ordering must be <i>consistent * with equals</i> to correctly implement the Set interface. If this * condition is violated, the set is still well-behaved, but you may have * suprising results when comparing it to other sets.<p> * * This implementation is not synchronized. If you need to share this between * multiple threads, do something like:<br> * <code>SortedSet s *       = Collections.synchronizedSortedSet(new TreeSet(...));</code><p> * * The iterators are <i>fail-fast</i>, meaning that any structural * modification, except for <code>remove()</code> called on the iterator * itself, cause the iterator to throw a * <code>ConcurrentModificationException</code> rather than exhibit * non-deterministic behavior. * * @author Jon Zeppieri * @author Bryce McKinlay * @author Eric Blake <ebb9@email.byu.edu> * @see Collection * @see Set * @see HashSet * @see LinkedHashSet * @see Comparable * @see Comparator * @see Collections#synchronizedSortedSet(SortedSet) * @see TreeMap * @since 1.2 * @status updated to 1.4 */public class TreeSet extends AbstractSet  implements SortedSet, Cloneable, Serializable{  /**   * Compatible with JDK 1.2.   */  private static final long serialVersionUID = -2479143000061671589L;  /**   * The SortedMap which backs this Set.   */  // Not final because of readObject. This will always be one of TreeMap or  // TreeMap.SubMap, which both extend AbstractMap.  private transient SortedMap map;  /**   * Construct a new TreeSet whose backing TreeMap using the "natural"   * ordering of keys. Elements that are not mutually comparable will cause   * ClassCastExceptions down the road.   *   * @see Comparable   */  public TreeSet()  {    map = new TreeMap();  }  /**   * Construct a new TreeSet whose backing TreeMap uses the supplied   * Comparator. Elements that are not mutually comparable will cause   * ClassCastExceptions down the road.   *   * @param comparator the Comparator this Set will use   */  public TreeSet(Comparator comparator)  {    map = new TreeMap(comparator);  }  /**   * Construct a new TreeSet whose backing TreeMap uses the "natural"   * orering of the keys and which contains all of the elements in the   * supplied Collection. This runs in n*log(n) time.   *   * @param collection the new Set will be initialized with all   *        of the elements in this Collection   * @throws ClassCastException if the elements of the collection are not   *         comparable   * @throws NullPointerException if the collection is null   * @see Comparable   */  public TreeSet(Collection collection)  {    map = new TreeMap();    addAll(collection);  }  /**   * Construct a new TreeSet, using the same key ordering as the supplied   * SortedSet and containing all of the elements in the supplied SortedSet.   * This constructor runs in linear time.   *   * @param sortedSet the new TreeSet will use this SortedSet's comparator   *        and will initialize itself with all its elements   * @throws NullPointerException if sortedSet is null   */  public TreeSet(SortedSet sortedSet)  {    map = new TreeMap(sortedSet.comparator());    Iterator itr = sortedSet.iterator();    ((TreeMap) map).putKeysLinear(itr, sortedSet.size());  }  /**   * This private constructor is used to implement the subSet() calls around   * a backing TreeMap.SubMap.   *   * @param backingMap the submap   */  private TreeSet(SortedMap backingMap)  {    map = backingMap;  }  /**   * Adds the spplied Object to the Set if it is not already in the Set;   * returns true if the element is added, false otherwise.   *   * @param obj the Object to be added to this Set   * @throws ClassCastException if the element cannot be compared with objects   *         already in the set   */  public boolean add(Object obj)  {    return map.put(obj, "") == null;  }  /**   * Adds all of the elements in the supplied Collection to this TreeSet.   *   * @param c The collection to add   * @return true if the Set is altered, false otherwise   * @throws NullPointerException if c is null   * @throws ClassCastException if an element in c cannot be compared with   *         objects already in the set   */  public boolean addAll(Collection c)  {    boolean result = false;    int pos = c.size();    Iterator itr = c.iterator();    while (--pos >= 0)      result |= (map.put(itr.next(), "") == null);    return result;  }  /**   * Removes all elements in this Set.   */  public void clear()  {    map.clear();  }  /**   * Returns a shallow copy of this Set. The elements are not cloned.   *   * @return the cloned set   */  public Object clone()  {    TreeSet copy = null;    try      {        copy = (TreeSet) super.clone();        // Map may be either TreeMap or TreeMap.SubMap, hence the ugly casts.        copy.map = (SortedMap) ((AbstractMap) map).clone();      }    catch (CloneNotSupportedException x)      {        // Impossible result.      }    return copy;  }  /**   * Returns this Set's comparator.   *   * @return the comparator, or null if the set uses natural ordering   */  public Comparator comparator()  {    return map.comparator();  }  /**   * Returns true if this Set contains the supplied Object, false otherwise.   *   * @param obj the Object to check for   * @return true if it is in the set   * @throws ClassCastException if obj cannot be compared with objects   *         already in the set   */  public boolean contains(Object obj)  {    return map.containsKey(obj);  }  /**   * Returns the first (by order) element in this Set.   *   * @return the first element   * @throws NoSuchElementException if the set is empty   */  public Object first()  {    return map.firstKey();  }  /**   * Returns a view of this Set including all elements less than   * <code>to</code>. The returned set is backed by the original, so changes   * in one appear in the other. The subset will throw an   * {@link IllegalArgumentException} for any attempt to access or add an   * element beyond the specified cutoff. The returned set does not include   * the endpoint; if you want inclusion, pass the successor element.   *   * @param to the (exclusive) cutoff point   * @return a view of the set less than the cutoff   * @throws ClassCastException if <code>to</code> is not compatible with   *         the comparator (or is not Comparable, for natural ordering)   * @throws NullPointerException if to is null, but the comparator does not   *         tolerate null elements   */  public SortedSet headSet(Object to)  {    return new TreeSet(map.headMap(to));  }  /**   * Returns true if this Set has size 0, false otherwise.   *   * @return true if the set is empty   */  public boolean isEmpty()  {    return map.isEmpty();  }  /**   * Returns in Iterator over the elements in this TreeSet, which traverses   * in ascending order.   *   * @return an iterator   */  public Iterator iterator()  {    return map.keySet().iterator();  }  /**   * Returns the last (by order) element in this Set.   *   * @return the last element   * @throws NoSuchElementException if the set is empty   */  public Object last()  {    return map.lastKey();  }  /**   * If the supplied Object is in this Set, it is removed, and true is   * returned; otherwise, false is returned.   *   * @param obj the Object to remove from this Set   * @return true if the set was modified   * @throws ClassCastException if obj cannot be compared to set elements   */  public boolean remove(Object obj)  {    return map.remove(obj) != null;  }  /**   * Returns the number of elements in this Set   *   * @return the set size   */  public int size()  {    return map.size();  }  /**   * Returns a view of this Set including all elements greater or equal to   * <code>from</code> and less than <code>to</code> (a half-open interval).   * The returned set is backed by the original, so changes in one appear in   * the other. The subset will throw an {@link IllegalArgumentException}   * for any attempt to access or add an element beyond the specified cutoffs.   * The returned set includes the low endpoint but not the high; if you want   * to reverse this behavior on either end, pass in the successor element.   *   * @param from the (inclusive) low cutoff point   * @param to the (exclusive) high cutoff point   * @return a view of the set between the cutoffs   * @throws ClassCastException if either cutoff is not compatible with   *         the comparator (or is not Comparable, for natural ordering)   * @throws NullPointerException if from or to is null, but the comparator   *         does not tolerate null elements   * @throws IllegalArgumentException if from is greater than to   */  public SortedSet subSet(Object from, Object to)  {    return new TreeSet(map.subMap(from, to));  }  /**   * Returns a view of this Set including all elements greater or equal to   * <code>from</code>. The returned set is backed by the original, so   * changes in one appear in the other. The subset will throw an   * {@link IllegalArgumentException} for any attempt to access or add an   * element beyond the specified cutoff. The returned set includes the   * endpoint; if you want to exclude it, pass in the successor element.   *   * @param from the (inclusive) low cutoff point   * @return a view of the set above the cutoff   * @throws ClassCastException if <code>from</code> is not compatible with   *         the comparator (or is not Comparable, for natural ordering)   * @throws NullPointerException if from is null, but the comparator   *         does not tolerate null elements   */  public SortedSet tailSet(Object from)  {    return new TreeSet(map.tailMap(from));  }  /**   * Serializes this object to the given stream.   *   * @param s the stream to write to   * @throws IOException if the underlying stream fails   * @serialData the <i>comparator</i> (Object), followed by the set size   *             (int), the the elements in sorted order (Object)   */  private void writeObject(ObjectOutputStream s) throws IOException  {    s.defaultWriteObject();    Iterator itr = map.keySet().iterator();    int pos = map.size();    s.writeObject(map.comparator());    s.writeInt(pos);    while (--pos >= 0)      s.writeObject(itr.next());  }  /**   * Deserializes this object from the given stream.   *   * @param s the stream to read from   * @throws ClassNotFoundException if the underlying stream fails   * @throws IOException if the underlying stream fails   * @serialData the <i>comparator</i> (Object), followed by the set size   *             (int), the the elements in sorted order (Object)   */  private void readObject(ObjectInputStream s)    throws IOException, ClassNotFoundException  {    s.defaultReadObject();    Comparator comparator = (Comparator) s.readObject();    int size = s.readInt();    map = new TreeMap(comparator);    ((TreeMap) map).putFromObjStream(s, size, false);  }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区精华液| 成人一区二区视频| 一区二区三区电影在线播| 国产精品久久久久久户外露出| 欧美高清在线精品一区| 国产女人18水真多18精品一级做| 久久精品欧美一区二区三区麻豆| 国产亚洲综合av| 国产精品乱人伦中文| 国产精品午夜免费| 亚洲人成伊人成综合网小说| 亚洲一区二区在线免费观看视频| 午夜久久久久久久久| 日本亚洲免费观看| 精品中文字幕一区二区小辣椒| 久久91精品国产91久久小草| 国产综合色精品一区二区三区| 国产69精品一区二区亚洲孕妇| 成人免费视频免费观看| 精品国产露脸精彩对白| wwwwww.欧美系列| 欧美激情资源网| 亚洲美女精品一区| 午夜日韩在线电影| 麻豆成人91精品二区三区| 国内精品免费在线观看| 成人午夜碰碰视频| 91农村精品一区二区在线| 欧美三级在线看| 日韩精品专区在线| 国产精品午夜久久| 亚洲五码中文字幕| 韩国av一区二区三区| k8久久久一区二区三区| 欧美日韩精品一区视频| 精品国产乱码91久久久久久网站| 国产精品久久一级| 亚洲第一av色| 国产黄人亚洲片| 色噜噜狠狠色综合中国| 欧美一区日韩一区| 国产精品毛片大码女人| 午夜精品免费在线| 国产乱国产乱300精品| 日本道色综合久久| 久久亚区不卡日本| 亚洲已满18点击进入久久| 卡一卡二国产精品| 色综合久久久久久久久| 精品噜噜噜噜久久久久久久久试看| 中文字幕欧美一| 蜜桃在线一区二区三区| 97久久精品人人做人人爽50路| 欧美一级黄色大片| 最新国产成人在线观看| 久久99精品久久久久久动态图| 色综合一区二区| 久久亚洲捆绑美女| 无吗不卡中文字幕| 99国产精品久久久久久久久久| 欧美一二三四区在线| 亚洲三级久久久| 精品一区二区三区在线播放| 91久久久免费一区二区| 久久精品日产第一区二区三区高清版 | gogo大胆日本视频一区| 日韩午夜av电影| 一区二区三区在线视频免费观看| 国产精品影视在线| 日韩欧美国产综合一区| 一区二区三区在线影院| 成人av免费网站| xnxx国产精品| 免费看日韩a级影片| 中文字幕va一区二区三区| 日本不卡一区二区三区| 欧美性做爰猛烈叫床潮| 国产精品色在线观看| 国产在线播放一区二区三区| 制服丝袜亚洲精品中文字幕| 亚洲激情图片小说视频| 成人18视频在线播放| 久久久久亚洲综合| 久久99精品国产麻豆婷婷洗澡| 欧美人妇做爰xxxⅹ性高电影| 一区二区三区在线视频免费| 99久久免费国产| 国产精品久久影院| 成人三级伦理片| 国产欧美日韩麻豆91| 国产精品一区二区在线观看网站| 欧美一级免费观看| 日韩二区三区四区| 欧美人与性动xxxx| 天天做天天摸天天爽国产一区| 色999日韩国产欧美一区二区| 亚洲欧美色综合| 91免费观看国产| 亚洲欧美另类久久久精品| 97se亚洲国产综合自在线不卡| 国产精品久久久久久久久久久免费看| 国产精品小仙女| 欧美激情一区二区三区在线| 成人妖精视频yjsp地址| 国产精品亲子伦对白| 成人免费毛片高清视频| 中文字幕制服丝袜一区二区三区| 成人av资源在线| 亚洲免费在线观看视频| 在线观看中文字幕不卡| 亚洲已满18点击进入久久| 欧美三级电影网站| 天堂午夜影视日韩欧美一区二区| 欧美福利一区二区| 久久 天天综合| 久久久国产精品不卡| 不卡视频免费播放| 亚洲视频一区二区在线观看| 99久久精品情趣| 亚洲高清免费观看高清完整版在线观看| 欧美在线不卡一区| 日韩综合一区二区| 欧美xxxx老人做受| 国产精品系列在线观看| 综合色天天鬼久久鬼色| 欧美性生活影院| 亚洲成人午夜影院| 日韩视频在线永久播放| 国产福利不卡视频| 亚洲男人天堂av| 欧美精品少妇一区二区三区| 麻豆国产精品一区二区三区| 国产午夜精品一区二区三区四区| 成人性生交大片| 亚洲一区二区三区小说| 日韩欧美在线123| 国产99久久久国产精品免费看| ●精品国产综合乱码久久久久| 欧美日韩国产综合一区二区 | 日韩精品一级中文字幕精品视频免费观看 | 美美哒免费高清在线观看视频一区二区| 日韩欧美在线影院| 粉嫩av一区二区三区在线播放| 一区二区三区在线视频观看58| 日韩欧美国产综合| www.日本不卡| 老司机免费视频一区二区| 国产精品家庭影院| 337p亚洲精品色噜噜噜| 国产成人精品一区二区三区四区| 亚洲午夜免费福利视频| 久久久影院官网| 欧美在线观看一二区| 精品一区二区国语对白| 一区二区三区四区乱视频| 欧美xxxx老人做受| 91国产视频在线观看| 国产一区二区精品在线观看| 亚洲妇熟xx妇色黄| 欧美韩日一区二区三区| 欧美狂野另类xxxxoooo| jizzjizzjizz欧美| 日本vs亚洲vs韩国一区三区二区 | 一区二区三区四区激情| 亚洲精品一区二区三区精华液| 欧美中文字幕一区| 国产精品综合二区| 日韩专区在线视频| 亚洲日本va在线观看| 26uuu精品一区二区| 欧美日韩黄色影视| 色综合天天综合在线视频| 激情偷乱视频一区二区三区| 婷婷亚洲久悠悠色悠在线播放| 中文字幕一区二区三区蜜月| 精品1区2区在线观看| 欧美偷拍一区二区| 99精品久久99久久久久| 国产精品99久久久久久久vr| 免费人成黄页网站在线一区二区| 亚洲另类春色国产| 国产精品全国免费观看高清| 日韩欧美色电影| 欧美日高清视频| 在线观看成人小视频| 99久久99精品久久久久久| 国产成人自拍网| 激情伊人五月天久久综合| 日本怡春院一区二区| 亚洲国产中文字幕在线视频综合| 亚洲四区在线观看| 中文幕一区二区三区久久蜜桃| www久久精品| 亚洲精品在线一区二区| 日韩欧美的一区| 欧美一级免费观看| 欧美一级午夜免费电影| 欧美一级专区免费大片| 欧美一级片免费看| 日韩一级大片在线|