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

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

?? arrayutil.java

?? httptunnel.jar httptunnel java 源碼
?? JAVA
字號(hào):
/* Copyright (c) 2001-2002, The HSQL Development Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of the HSQL Development Group nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */package net.jumperz.ext.org.hsqldb.lib;/** * Collection of static methods for operations on arrays * * @author fredt@users * @version 1.7.0 */public class ArrayUtil {    /**     *   Basic sort for small arrays.     */    public static void sortArray(int intarr[]) {        boolean swapped;        do {            swapped = false;            for (int i = 0; i < intarr.length - 1; i++) {                if (intarr[i] > intarr[i + 1]) {                    int temp = intarr[i + 1];                    intarr[i + 1] = intarr[i];                    intarr[i]     = temp;                    swapped       = true;                }            }        } while (swapped);    }    /**     * For sets == true returns true if a and b are the same length and     * contain the same set of integers. For sets == false returns the result     * of haveEqualArrays(a,b,count)     *     */    public static boolean haveEquality(int[] a, int[] b, int count,                                       boolean sets) {        if (sets) {            if (a.length == b.length && count == a.length                    && ArrayUtil.haveEqualSets(a, b, count)) {                return true;            }        } else {            if (ArrayUtil.haveEqualArrays(a, b, count)) {                return true;            }        }        return false;    }    /**     * Returns true if the first count elements of a and b are identical sets     * of integers     *     */    public static boolean haveEqualSets(int[] a, int[] b, int count) {        if (count > a.length || count > b.length) {            return false;        }        if (count == 1) {            return a[0] == b[0];        }        int[] tempa = new int[count];        int[] tempb = new int[count];        copyArray(a, tempa, count);        copyArray(b, tempb, count);        sortArray(tempa);        sortArray(tempb);        for (int j = 0; j < count; j++) {            if (tempa[j] != tempb[j]) {                return false;            }        }        return true;    }    /**     * Returns true if the first count elements of a and b are identical     * subarrays of integers     *     */    public static boolean haveEqualArrays(int[] a, int[] b, int count) {        if (count > a.length || count > b.length) {            return false;        }        if (count == 1) {            return a[0] == b[0];        }        for (int j = 0; j < count; j++) {            if (a[j] != b[j]) {                return false;            }        }        return true;    }    /**     *  Checks for any overlap between two arrays of column indexes.     *  Limit check to lenb elements of b     */    public static boolean haveCommonElement(int[] a, int[] b, int lenb) {        for (int i = 0; i < a.length; i++) {            int c = a[i];            for (int j = 0; j < lenb; j++) {                if (c == b[j]) {                    return true;                }            }        }        return false;    }    public static void copyArray(int[] source, int[] dest, int count) {        System.arraycopy(source, 0, dest, 0, count);    }    /**     *  Copies elements of source to dest. If adjust is -1 the element at     *  colindex is not copied. If adjust is +1 that element is filled with     *  the Object addition. All the rest of the elements in source are     *  shifted left or right accordingly when they are copied.     *     *  No checks are perfomed on array sizes and an exception is thrown     *  if they are not consistent with the other arguments.     *     * @param  source     * @param  dest     * @param  addition     * @param colindex     * @param  adjust +1 or 0 or -1     * return new, adjusted array or null if an element is removed     */    public static void copyAdjustArray(Object[] source, Object[] dest,                                       Object addition, int colindex,                                       int adjust) {        int i;        for (i = 0; i < colindex; i++) {            dest[i] = source[i];        }        if (i == dest.length) {            return;        }        if (adjust < 0) {            i++;        } else {            dest[i] = addition;        }        for (; i < source.length; i++) {            dest[i + adjust] = source[i];        }    }    /**     * Returns new array with the elements in collar ajusted to reflect     * changes at colindex.     *     * Each element in collarr represents an index into another array     * otherarr.     * colindex is the index at which an element is added or removed form     * otherarr. Each element in the result array represents the new,     * adjusted index to otherarr.     * For each element of collarr that represents an index equal to     * colindex and adjust is -1, the result will not contain that element     * and will be shorter than collar by one element.     *     *     * @param  colarr     * @param  colindex     * @param  adjust +1 or 0 or -1     * return new, adjusted array     */    public static int[] toAdjustedColumnArray(int[] colarr, int colindex,            int adjust) {        if (colarr == null) {            return null;        }        int[] intarr = new int[colarr.length];        int   j      = 0;        for (int i = 0; i < colarr.length; i++) {            if (colarr[i] > colindex) {                intarr[j] = colarr[i] + adjust;                j++;            } else if (colarr[i] == colindex) {                if (adjust < 0) {                    // skip an element from colarr                } else {                    intarr[j] = colarr[i] + adjust;                    j++;                }            } else {                intarr[j] = colarr[i];                j++;            }        }        if (colarr.length != j) {            int[] newarr = new int[j];            copyArray(intarr, newarr, j);            return newarr;        }        return intarr;    }    /**     * Convenience wrapper for toAdjustedColumnArray() that creates the new     * array.     */    public static int[] getAdjustedColumnArray(int[] colarr, int size,            int colindex, int adjust) {        int[] newarr = new int[size];        copyArray(colarr, newarr, size);        return toAdjustedColumnArray(newarr, colindex, adjust);    }    /**     *  Copies some elements of row into colobject by using colindex as the     *  list of indexes into row. colindex and colobject are of equal length     *  and normally shorter than row;     *     */    public static void copyColumnValues(Object row[], int colindex[],                                        Object colobject[]) {        for (int i = 0; i < colindex.length; i++) {            colobject[i] = row[colindex[i]];        }    }/*    public static void main(String[] args) {        int[] a = new int[] {            23, 11, 37, 7, 1, 5        };        int[] b = new int[] {            1, 3, 7, 11, 13, 17, 19, 3, 1        };        int[] c = toAdjustedColumnArray(a, 7, -1);        int[] d = toAdjustedColumnArray(b, 11, 1);        int[] e = new int[a.length];        copyArray(a, e, a.length);        sortArray(e);        int[] f = new int[b.length];        copyArray(b, f, b.length);        sortArray(f);        boolean x = haveEqualSets(a, e, a.length);        boolean y = haveEqualSets(b, f, b.length);        System.out.print("test passed: ");        System.out.print(x == true && y == true && c.length == a.length - 1                         && d.length == b.length);    }*/}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品不卡在线观看| 国产精品久久久久三级| 4438成人网| 91黄色免费网站| 99re热视频这里只精品| 不卡一区二区中文字幕| 国产成人精品www牛牛影视| 国产很黄免费观看久久| 九色porny丨国产精品| 激情小说亚洲一区| 国产一区二区调教| 国产成人av一区| 成人教育av在线| 91免费国产在线| 在线区一区二视频| 欧美日韩1234| 91精品国产综合久久福利软件| 欧美精品少妇一区二区三区| 欧美精品xxxxbbbb| 日韩一区二区免费电影| 精品欧美一区二区三区精品久久| 欧美白人最猛性xxxxx69交| 精品处破学生在线二十三| 久久日韩精品一区二区五区| 久久久美女毛片| 欧美国产激情一区二区三区蜜月| 一区二区中文字幕在线| 亚洲黄色性网站| 亚洲亚洲精品在线观看| 美女网站视频久久| 国产精品一区二区果冻传媒| 成人在线视频首页| 色哟哟一区二区在线观看| 色88888久久久久久影院按摩| 欧美伦理电影网| 亚洲精品一区二区三区福利| 国产欧美精品国产国产专区| 亚洲精品第一国产综合野| 五月开心婷婷久久| 国产老肥熟一区二区三区| 99这里只有精品| 91精品国产综合久久精品麻豆| 精品久久久久香蕉网| 中文字幕中文在线不卡住| 亚洲成人自拍一区| 国产一区二区h| 91福利国产成人精品照片| 欧美大度的电影原声| 国产精品国产三级国产aⅴ原创| 天天影视涩香欲综合网| 国产91精品一区二区麻豆网站| caoporen国产精品视频| 国产精品成人在线观看| 欧美一区二区视频免费观看| 精品视频在线视频| 久久综合九色综合久久久精品综合| 国产精品国产三级国产普通话99| 亚洲成av人片在www色猫咪| 国产美女在线精品| 在线国产亚洲欧美| 国产色产综合色产在线视频| 亚洲国产成人av| 成人午夜碰碰视频| 欧美一级午夜免费电影| 一区二区三区在线视频观看| 国产一区二区三区美女| 欧美日韩一区二区三区在线看| 精品国产3级a| 三级欧美韩日大片在线看| 成人午夜在线免费| 精品嫩草影院久久| 亚洲成a人v欧美综合天堂下载 | 国产综合久久久久久久久久久久| 91在线国产福利| 久久女同精品一区二区| 婷婷开心激情综合| 91社区在线播放| 国产日产欧美精品一区二区三区| 日韩精彩视频在线观看| 色网站国产精品| 国产精品久久久久影院亚瑟| 国产在线一区二区综合免费视频| 欧美精品第一页| 亚洲综合激情另类小说区| 99国产精品一区| 国产丝袜在线精品| 精品亚洲成a人在线观看 | 亚洲欧美日韩一区二区三区在线观看 | 亚洲欧美日韩电影| 成人国产视频在线观看| 久久亚洲综合av| 日韩av电影免费观看高清完整版在线观看 | 91日韩在线专区| 中文字幕成人网| 国产成人精品综合在线观看 | 亚洲成人av中文| 在线欧美一区二区| 亚洲精品日韩一| 色悠久久久久综合欧美99| 亚洲色大成网站www久久九九| 成人国产在线观看| 自拍偷自拍亚洲精品播放| 成人教育av在线| 中文字幕一区二区三区av| 成人午夜av影视| 专区另类欧美日韩| 91视频在线看| 亚洲狠狠爱一区二区三区| 精品视频色一区| 天天操天天综合网| 欧美电影一区二区| 蜜芽一区二区三区| 欧美一级黄色大片| 久久不见久久见免费视频7| 久久影院午夜片一区| 国产成人免费xxxxxxxx| 亚洲天堂av一区| 色婷婷国产精品| 午夜视频在线观看一区二区三区| 欧美老女人第四色| 秋霞av亚洲一区二区三| 久久综合成人精品亚洲另类欧美 | 99精品在线免费| 亚洲美女电影在线| 欧美日韩精品欧美日韩精品一综合| 天天免费综合色| 精品国产乱码久久| 成人国产电影网| 亚洲综合成人在线视频| 欧美一级国产精品| 国产成人鲁色资源国产91色综| 亚洲视频香蕉人妖| 欧美三级视频在线| 久久精品国产在热久久| 国产亚洲综合色| 色欧美日韩亚洲| 免费av成人在线| 国产精品三级视频| 欧美丝袜第三区| 九色porny丨国产精品| 国产精品免费丝袜| 欧美性猛交xxxx黑人交| 久久99久久精品| ㊣最新国产の精品bt伙计久久| 欧美中文字幕亚洲一区二区va在线 | 欧美国产日韩a欧美在线观看| 91网站在线观看视频| 日本不卡在线视频| 中文在线免费一区三区高中清不卡| 在线观看三级视频欧美| 毛片av中文字幕一区二区| 国产精品久久久久久久久晋中| 欧美亚洲国产怡红院影院| 精品在线免费视频| 亚洲黄色尤物视频| 久久久噜噜噜久久人人看| 欧美亚洲国产一区二区三区va| 国产精品综合二区| 亚洲狠狠爱一区二区三区| 国产日本亚洲高清| 欧美高清dvd| 北条麻妃国产九九精品视频| 日韩va欧美va亚洲va久久| 国产精品短视频| 欧美tickle裸体挠脚心vk| 91传媒视频在线播放| 懂色av一区二区夜夜嗨| 日日噜噜夜夜狠狠视频欧美人| 国产婷婷色一区二区三区四区| 欧美区在线观看| 99国产精品久久| 国产精品一区二区久激情瑜伽| 日韩精品午夜视频| 一区二区中文字幕在线| 久久夜色精品一区| 欧美一区二区三区婷婷月色| 色婷婷久久久久swag精品| 国产sm精品调教视频网站| 免费在线视频一区| 亚洲r级在线视频| 亚洲日本成人在线观看| 久久免费视频色| 日韩一区二区三区电影| 欧美影视一区二区三区| 99精品视频一区| 国产不卡免费视频| 国产精品一区在线观看你懂的| 日韩电影免费在线观看网站| 一区二区三区中文在线| 国产精品大尺度| 国产欧美日韩综合| 久久先锋影音av鲁色资源网| 91精品国产高清一区二区三区 | 欧美一级高清大全免费观看| 欧美性猛片xxxx免费看久爱| 91美女片黄在线观看| 9人人澡人人爽人人精品| 成人精品电影在线观看| 成人午夜精品一区二区三区| 国产成人aaa|