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

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

?? bitset.java

?? java源代碼 請看看啊 提點寶貴的意見
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
            (w < 1<<21 ? (w < 1<<20 ? 20 : 21) : (w < 1<<22 ? 22 : 23))) :           (w < 1<<27 ?            (w < 1<<25 ? (w < 1<<24 ? 24 : 25) : (w < 1<<26 ? 26 : 27)) :            (w < 1<<29 ? (w < 1<<28 ? 28 : 29) : (w < 1<<30 ? 30 : 31)))));    }    /**     * Returns true if this <code>BitSet</code> contains no bits that are set     * to <code>true</code>.     *     * @return    boolean indicating whether this <code>BitSet</code> is empty.     * @since     1.4     */    public boolean isEmpty() {        return (unitsInUse == 0);    }    /**     * Returns true if the specified <code>BitSet</code> has any bits set to     * <code>true</code> that are also set to <code>true</code> in this     * <code>BitSet</code>.     *     * @param	set <code>BitSet</code> to intersect with     * @return  boolean indicating whether this <code>BitSet</code> intersects     *          the specified <code>BitSet</code>.     * @since   1.4     */    public boolean intersects(BitSet set) {        for(int i = Math.min(unitsInUse, set.unitsInUse)-1; i>=0; i--)            if ((bits[i] & set.bits[i]) != 0)                return true;        return false;    }    /**     * Returns the number of bits set to <tt>true</tt> in this     * <code>BitSet</code>.     *     * @return  the number of bits set to <tt>true</tt> in this     *          <code>BitSet</code>.     * @since   1.4     */    public int cardinality() {        int sum = 0;        for (int i=0; i<unitsInUse; i++)            sum += bitCount(bits[i]);        return sum;    }    /**     * Returns the number of bits set in val.     * For a derivation of this algorithm, see     * "Algorithms and data structures with applications to      *  graphics and geometry", by Jurg Nievergelt and Klaus Hinrichs,     *  Prentice Hall, 1993.     */    private static int bitCount(long val) {        val -= (val & 0xaaaaaaaaaaaaaaaaL) >>> 1;        val =  (val & 0x3333333333333333L) + ((val >>> 2) & 0x3333333333333333L);        val =  (val + (val >>> 4)) & 0x0f0f0f0f0f0f0f0fL;        val += val >>> 8;             val += val >>> 16;            return ((int)(val) + (int)(val >>> 32)) & 0xff;    }    /**     * Performs a logical <b>AND</b> of this target bit set with the      * argument bit set. This bit set is modified so that each bit in it      * has the value <code>true</code> if and only if it both initially      * had the value <code>true</code> and the corresponding bit in the      * bit set argument also had the value <code>true</code>.      *     * @param   set   a bit set.      */    public void and(BitSet set) {	if (this == set)	    return;	// Perform logical AND on bits in common	int oldUnitsInUse = unitsInUse;	unitsInUse = Math.min(unitsInUse, set.unitsInUse);        int i;	for(i=0; i<unitsInUse; i++)	    bits[i] &= set.bits[i];	// Clear out units no longer used	for( ; i < oldUnitsInUse; i++)	    bits[i] = 0;        // Recalculate units in use if necessary        if (unitsInUse > 0 && bits[unitsInUse - 1] == 0)            recalculateUnitsInUse();    }    /**     * Performs a logical <b>OR</b> of this bit set with the bit set      * argument. This bit set is modified so that a bit in it has the      * value <code>true</code> if and only if it either already had the      * value <code>true</code> or the corresponding bit in the bit set      * argument has the value <code>true</code>.     *     * @param   set   a bit set.     */    public void or(BitSet set) {	if (this == set)	    return;	ensureCapacity(set.unitsInUse);	// Perform logical OR on bits in common	int unitsInCommon = Math.min(unitsInUse, set.unitsInUse);        int i;	for(i=0; i<unitsInCommon; i++)	    bits[i] |= set.bits[i];	// Copy any remaining bits	for(; i<set.unitsInUse; i++)	    bits[i] = set.bits[i];        if (unitsInUse < set.unitsInUse)            unitsInUse = set.unitsInUse;    }    /**     * Performs a logical <b>XOR</b> of this bit set with the bit set      * argument. This bit set is modified so that a bit in it has the      * value <code>true</code> if and only if one of the following      * statements holds:      * <ul>     * <li>The bit initially has the value <code>true</code>, and the      *     corresponding bit in the argument has the value <code>false</code>.     * <li>The bit initially has the value <code>false</code>, and the      *     corresponding bit in the argument has the value <code>true</code>.      * </ul>     *     * @param   set   a bit set.     */    public void xor(BitSet set) {        int unitsInCommon;        if (unitsInUse >= set.unitsInUse) {            unitsInCommon = set.unitsInUse;        } else {            unitsInCommon = unitsInUse;            int newUnitsInUse = set.unitsInUse;            ensureCapacity(newUnitsInUse);            unitsInUse = newUnitsInUse;        }	// Perform logical XOR on bits in common        int i;        for (i=0; i<unitsInCommon; i++)	    bits[i] ^= set.bits[i];	// Copy any remaining bits        for ( ; i<set.unitsInUse; i++)            bits[i] = set.bits[i];        recalculateUnitsInUse();    }    /**     * Clears all of the bits in this <code>BitSet</code> whose corresponding     * bit is set in the specified <code>BitSet</code>.     *     * @param     set the <code>BitSet</code> with which to mask this     *            <code>BitSet</code>.     * @since     JDK1.2     */    public void andNot(BitSet set) {        int unitsInCommon = Math.min(unitsInUse, set.unitsInUse);	// Perform logical (a & !b) on bits in common        for (int i=0; i<unitsInCommon; i++) {	    bits[i] &= ~set.bits[i];        }        recalculateUnitsInUse();    }    /**     * Returns a hash code value for this bit set. The has code      * depends only on which bits have been set within this      * <code>BitSet</code>. The algorithm used to compute it may      * be described as follows.<p>     * Suppose the bits in the <code>BitSet</code> were to be stored      * in an array of <code>long</code> integers called, say,      * <code>bits</code>, in such a manner that bit <code>k</code> is      * set in the <code>BitSet</code> (for nonnegative values of      * <code>k</code>) if and only if the expression      * <pre>((k&gt;&gt;6) &lt; bits.length) && ((bits[k&gt;&gt;6] & (1L &lt;&lt; (bit & 0x3F))) != 0)</pre>     * is true. Then the following definition of the <code>hashCode</code>      * method would be a correct implementation of the actual algorithm:     * <pre>     * public int hashCode() {     *      long h = 1234;     *      for (int i = bits.length; --i &gt;= 0; ) {     *           h ^= bits[i] * (i + 1);     *      }     *      return (int)((h &gt;&gt; 32) ^ h);     * }</pre>     * Note that the hash code values change if the set of bits is altered.     * <p>Overrides the <code>hashCode</code> method of <code>Object</code>.     *     * @return  a hash code value for this bit set.     */    public int hashCode() {	long h = 1234;	for (int i = bits.length; --i >= 0; )            h ^= bits[i] * (i + 1);	return (int)((h >> 32) ^ h);    }        /**     * Returns the number of bits of space actually in use by this      * <code>BitSet</code> to represent bit values.      * The maximum element in the set is the size - 1st element.     *     * @return  the number of bits currently in this bit set.     */    public int size() {	return bits.length << ADDRESS_BITS_PER_UNIT;    }    /**     * Compares this object against the specified object.     * The result is <code>true</code> if and only if the argument is      * not <code>null</code> and is a <code>Bitset</code> object that has      * exactly the same set of bits set to <code>true</code> as this bit      * set. That is, for every nonnegative <code>int</code> index <code>k</code>,      * <pre>((BitSet)obj).get(k) == this.get(k)</pre>     * must be true. The current sizes of the two bit sets are not compared.      * <p>Overrides the <code>equals</code> method of <code>Object</code>.     *     * @param   obj   the object to compare with.     * @return  <code>true</code> if the objects are the same;     *          <code>false</code> otherwise.     * @see     java.util.BitSet#size()     */    public boolean equals(Object obj) {	if (!(obj instanceof BitSet))	    return false;	if (this == obj)	    return true;	BitSet set = (BitSet) obj;	int minUnitsInUse = Math.min(unitsInUse, set.unitsInUse);	// Check units in use by both BitSets	for (int i = 0; i < minUnitsInUse; i++)	    if (bits[i] != set.bits[i])		return false;	// Check any units in use by only one BitSet (must be 0 in other)	if (unitsInUse > minUnitsInUse) {	    for (int i = minUnitsInUse; i<unitsInUse; i++)		if (bits[i] != 0)		    return false;	} else {	    for (int i = minUnitsInUse; i<set.unitsInUse; i++)		if (set.bits[i] != 0)		    return false;	}	return true;    }    /**     * Cloning this <code>BitSet</code> produces a new <code>BitSet</code>      * that is equal to it.     * The clone of the bit set is another bit set that has exactly the      * same bits set to <code>true</code> as this bit set and the same      * current size.      * <p>Overrides the <code>clone</code> method of <code>Object</code>.     *     * @return  a clone of this bit set.     * @see     java.util.BitSet#size()     */    public Object clone() {	BitSet result = null;	try {	    result = (BitSet) super.clone();	} catch (CloneNotSupportedException e) {	    throw new InternalError();	}	result.bits = new long[bits.length];	System.arraycopy(bits, 0, result.bits, 0, unitsInUse);	return result;    }    /**     * This override of readObject makes sure unitsInUse is set properly     * when deserializing a bitset     *     */    private void readObject(java.io.ObjectInputStream in)        throws IOException, ClassNotFoundException {                in.defaultReadObject();        // Assume maximum length then find real length        // because recalculateUnitsInUse assumes maintenance        // or reduction in logical size        unitsInUse = bits.length;        recalculateUnitsInUse();    }    /**     * Returns a string representation of this bit set. For every index      * for which this <code>BitSet</code> contains a bit in the set      * state, the decimal representation of that index is included in      * the result. Such indices are listed in order from lowest to      * highest, separated by ",&nbsp;" (a comma and a space) and      * surrounded by braces, resulting in the usual mathematical      * notation for a set of integers.<p>     * Overrides the <code>toString</code> method of <code>Object</code>.     * <p>Example:     * <pre>     * BitSet drPepper = new BitSet();</pre>     * Now <code>drPepper.toString()</code> returns "<code>{}</code>".<p>     * <pre>     * drPepper.set(2);</pre>     * Now <code>drPepper.toString()</code> returns "<code>{2}</code>".<p>     * <pre>     * drPepper.set(4);     * drPepper.set(10);</pre>     * Now <code>drPepper.toString()</code> returns "<code>{2, 4, 10}</code>".     *     * @return  a string representation of this bit set.     */    public String toString() {	int numBits = unitsInUse << ADDRESS_BITS_PER_UNIT;	StringBuffer buffer = new StringBuffer(8*numBits + 2);	String separator = "";	buffer.append('{');	for (int i = 0 ; i < numBits; i++) {	    if (get(i)) {		buffer.append(separator);		separator = ", ";	        buffer.append(i);	    }        }	buffer.append('}');	return buffer.toString();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线免费播放| 国产一区二区三区观看| 中文字幕一区日韩精品欧美| 久久久国产精品麻豆| 亚洲精品在线观| 久久奇米777| 中文字幕av一区 二区| 国产精品电影一区二区| 国产精品久久久久久久久快鸭 | 91社区在线播放| 不卡一区二区三区四区| 91视频观看免费| 欧美日韩国产小视频| 欧美人伦禁忌dvd放荡欲情| 在线综合视频播放| 日韩精品专区在线影院重磅| 久久午夜羞羞影院免费观看| 久久精品亚洲一区二区三区浴池 | 狠狠狠色丁香婷婷综合激情 | 国产精品国产自产拍在线| 亚洲视频每日更新| 亚洲一卡二卡三卡四卡无卡久久| 日韩精品1区2区3区| 国产一区二区女| 色综合久久中文字幕综合网| 欧美日韩一区小说| 亚洲精品在线电影| 成人欧美一区二区三区小说| 婷婷综合五月天| 国产成人无遮挡在线视频| 99天天综合性| 欧美一二三区精品| 国产精品久久久久精k8 | 日韩视频在线永久播放| 国产欧美精品一区二区三区四区 | 日韩美女天天操| 中文字幕一区二区三区视频| 视频一区欧美日韩| 成人国产在线观看| 欧美一区二区三区视频在线观看| 中文字幕不卡三区| 麻豆精品蜜桃视频网站| 99久久国产综合精品女不卡| 欧美一级高清片在线观看| 国产精品免费视频网站| 日韩精品电影一区亚洲| 91麻豆免费观看| xnxx国产精品| 日韩中文欧美在线| 在线亚洲免费视频| 久久精品视频网| 日本成人在线网站| 色美美综合视频| 国产丝袜美腿一区二区三区| 天堂精品中文字幕在线| 色天天综合久久久久综合片| 欧美激情一区二区三区不卡| 免费观看在线综合色| av在线综合网| 久久精品视频免费观看| 久久国产日韩欧美精品| 欧美日韩一本到| 一区二区三区**美女毛片| 从欧美一区二区三区| 久久亚洲精精品中文字幕早川悠里| 亚洲一区二区av在线| 色88888久久久久久影院野外| 日本一区二区电影| 国产成人av电影在线播放| 精品国产91久久久久久久妲己| 视频一区欧美精品| 欧美精品在线视频| 日本va欧美va精品发布| 欧美视频在线观看一区| 洋洋成人永久网站入口| 欧美在线高清视频| 亚洲国产视频一区二区| 欧美日韩一区二区电影| 亚洲r级在线视频| 欧美精品在线视频| 麻豆精品视频在线观看| 欧美岛国在线观看| 精品亚洲成a人| 国产视频一区二区在线| 大白屁股一区二区视频| ...中文天堂在线一区| 色成人在线视频| 亚洲精品久久久久久国产精华液 | 亚洲人妖av一区二区| 91亚洲国产成人精品一区二区三| 国产精品久久久久久久久搜平片 | 欧美在线免费播放| 天天免费综合色| 欧美va亚洲va| 成人一区二区三区视频在线观看| 中文字幕 久热精品 视频在线 | 欧美在线视频你懂得| 亚洲成人激情av| 精品精品国产高清一毛片一天堂| 国产在线精品一区二区三区不卡| 中文av字幕一区| 91成人免费在线| 免费不卡在线观看| 中文一区在线播放| 欧美日韩激情一区二区三区| 老色鬼精品视频在线观看播放| 日本一区二区久久| 56国语精品自产拍在线观看| 国产精品一区免费视频| 一区二区三区免费网站| 日韩精品一区二区三区视频在线观看 | 成人午夜伦理影院| 亚洲第一搞黄网站| 欧美日精品一区视频| 风间由美一区二区av101| 一区二区三区精品视频| 欧美成人女星排名| 91成人免费电影| 国产成人午夜高潮毛片| 日产精品久久久久久久性色| 欧美激情在线一区二区三区| 欧美日韩高清影院| 99v久久综合狠狠综合久久| 久久99久久久欧美国产| 一区二区三区在线观看欧美 | 欧美电视剧免费观看| 色噜噜偷拍精品综合在线| 国产精品一区二区在线播放| 亚洲国产成人tv| 亚洲欧洲国产日韩| 国产午夜亚洲精品不卡| 日韩欧美国产综合一区| 欧美日韩国产综合草草| 99r国产精品| 成人午夜在线播放| 国产一区二区三区精品欧美日韩一区二区三区| 亚洲免费三区一区二区| 国产精品你懂的在线| 久久久久久麻豆| 日韩色在线观看| 91精品婷婷国产综合久久竹菊| 在线这里只有精品| av电影在线不卡| 成人听书哪个软件好| 国产美女在线观看一区| 久久99精品久久久久久动态图 | 欧美日本在线播放| 欧美色视频一区| 91高清视频免费看| 色噜噜狠狠成人网p站| 色综合久久天天| 色综合久久久久久久久| 色综合久久88色综合天天6| 99精品国产一区二区三区不卡| 不卡的av在线播放| aaa亚洲精品| 色综合久久久久综合体| 色久优优欧美色久优优| 在线观看成人免费视频| 欧美日韩一区成人| 337p亚洲精品色噜噜噜| 日韩美女一区二区三区四区| 精品国内二区三区| 国产欧美一区二区三区网站| 欧美国产精品专区| 日韩码欧中文字| 亚洲一区二区三区四区五区黄| 亚洲一区二区三区四区在线免费观看 | 成人av午夜影院| 色88888久久久久久影院野外| 欧美视频自拍偷拍| 欧美剧情电影在线观看完整版免费励志电影 | 北条麻妃一区二区三区| 91麻豆精品视频| 欧美日韩精品欧美日韩精品一 | 91视频com| 亚洲一区二区欧美| 蜜桃av一区二区| 国产ts人妖一区二区| 一本大道久久精品懂色aⅴ | 日韩av电影天堂| 国产乱码精品1区2区3区| av电影在线观看不卡| 欧美日韩国产另类不卡| 精品国产成人系列| 一区二区三区在线免费| 久久成人久久爱| 91亚洲国产成人精品一区二三 | 亚洲欧美欧美一区二区三区| 婷婷丁香激情综合| 成人午夜大片免费观看| 欧美日韩一区小说| 日本一区二区三区视频视频| 亚洲一区二区欧美| 国产成人综合网| 在线不卡免费av| 一区视频在线播放| 韩日欧美一区二区三区| 欧美制服丝袜第一页| 国产清纯白嫩初高生在线观看91|