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

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

?? keyedobjects.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 *
 * This library is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU Lesser General Public License as published by 
 * the Free Software Foundation; either version 2.1 of the License, or 
 * (at your option) any later version.
 *
 * This library 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 Lesser General Public 
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
 * USA.  
 *
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 
 * in the United States and other countries.]
 *
 * -----------------
 * KeyedObjects.java
 * -----------------
 * (C) Copyright 2003-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: KeyedObjects.java,v 1.5.2.1 2005/10/25 21:29:13 mungady Exp $
 *
 * Changes:
 * --------
 * 31-Oct-2002 : Version 1 (DG);
 * 11-Jan-2005 : Minor tidy up (DG);
 * 
 */

package org.jfree.data;

import java.io.Serializable;
import java.util.Iterator;
import java.util.List;

import org.jfree.util.PublicCloneable;

/**
 * A collection of (key, object) pairs.
 */
public class KeyedObjects  implements Cloneable, PublicCloneable, Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 1321582394193530984L;
    
    /** Storage for the data. */
    private List data;

    /**
     * Creates a new collection (initially empty).
     */
    public KeyedObjects() {
        this.data = new java.util.ArrayList();
    }

    /**
     * Returns the number of items (values) in the collection.
     *
     * @return The item count.
     */
    public int getItemCount() {
        return this.data.size();
    }

    /**
     * Returns an object.
     *
     * @param item  the item index (zero-based).
     *
     * @return The object (<code>null</code> if the index is out of range).
     */
    public Object getObject(int item) {
        Object result = null;
        if (item >= 0 && item < this.data.size()) {
            KeyedObject kobj = (KeyedObject) this.data.get(item);
            if (kobj != null) {
                result = kobj.getObject();
            }
        }
        return result;
    }

    /**
     * Returns a key.
     *
     * @param index  the item index (zero-based).
     *
     * @return The row key.
     * 
     * @throws IndexOutOfBoundsException if <code>index</code> is out of bounds.
     */
    public Comparable getKey(int index) {
        Comparable result = null;
        if (index >= 0 && index < this.data.size()) {
            KeyedObject item = (KeyedObject) this.data.get(index);
            if (item != null) {
                result = item.getKey();
            }
        }
        return result;
    }

    /**
     * Returns the index for a given key.
     *
     * @param key  the key.
     *
     * @return The index, or <code>-1</code> if the key is unrecognised.
     */
    public int getIndex(Comparable key) {
        int result = -1;
        int i = 0;
        Iterator iterator = this.data.iterator();
        while (iterator.hasNext()) {
            KeyedObject ko = (KeyedObject) iterator.next();
            if (ko.getKey().equals(key)) {
                result = i;
            }
            i++;
        }
        return result;
    }

    /**
     * Returns the keys.
     *
     * @return The keys (never <code>null</code>).
     */
    public List getKeys() {
        List result = new java.util.ArrayList();
        Iterator iterator = this.data.iterator();
        while (iterator.hasNext()) {
            KeyedObject ko = (KeyedObject) iterator.next();
            result.add(ko.getKey());
        }
        return result;
    }

    /**
     * Returns the object for a given key. If the key is not recognised, the 
     * method should return <code>null</code>.
     *
     * @param key  the key.
     *
     * @return The object (possibly <code>null</code>).
     */
    public Object getObject(Comparable key) {
        return getObject(getIndex(key));
    }

    /**
     * Adds a new object to the collection, or overwrites an existing object.  
     * This is the same as the {@link #setObject(Comparable, Object)} method.
     *
     * @param key  the key.
     * @param object  the object.
     */
    public void addObject(Comparable key, Object object) {
        setObject(key, object);
    }

    /**
     * Replaces an existing object, or adds a new object to the collection.
     * This is the same as the {@link #addObject(Comparable, Object)} 
     * method.
     *
     * @param key  the key.
     * @param object  the object.
     */
    public void setObject(Comparable key, Object object) {
        int keyIndex = getIndex(key);
        if (keyIndex >= 0) {
            KeyedObject ko = (KeyedObject) this.data.get(keyIndex);
            ko.setObject(object);
        }
        else {
            KeyedObject ko = new KeyedObject(key, object);
            this.data.add(ko);
        }
    }

    /**
     * Removes a value from the collection.
     *
     * @param index  the index of the item to remove.
     */
    public void removeValue(int index) {
        this.data.remove(index);
    }

    /**
     * Removes a value from the collection.
     *
     * @param key  the key of the item to remove.
     */
    public void removeValue(Comparable key) {
        removeValue(getIndex(key));
    }
    
    /**
     * Returns a clone of this object.
     * 
     * @return A clone.
     * 
     * @throws CloneNotSupportedException if there is a problem cloning.
     */
    public Object clone() throws CloneNotSupportedException {
        KeyedObjects clone = (KeyedObjects) super.clone();
        clone.data = new java.util.ArrayList();
        Iterator iterator = this.data.iterator();
        while (iterator.hasNext()) {
            KeyedObject ko = (KeyedObject) iterator.next();
            clone.data.add(ko.clone());
        }
        return clone;      
    }
    
    /**
     * Tests if this object is equal to another.
     *
     * @param o  the other object.
     *
     * @return A boolean.
     */
    public boolean equals(Object o) {

        if (o == null) {
            return false;
        }
        if (o == this) {
            return true;
        }

        if (!(o instanceof KeyedObjects)) {
            return false;
        }

        KeyedObjects kos = (KeyedObjects) o;
        int count = getItemCount();
        if (count != kos.getItemCount()) {
            return false;
        }

        for (int i = 0; i < count; i++) {
            Comparable k1 = getKey(i);
            Comparable k2 = kos.getKey(i);
            if (!k1.equals(k2)) {
                return false;
            }
            Object o1 = getObject(i);
            Object o2 = kos.getObject(i);
            if (o1 == null) {
                if (o2 != null) {
                    return false;
                }
            }
            else {
                if (!o1.equals(o2)) {
                    return false;
                }
            }
        }
        return true;

    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品久久一二三区| 国产乱码精品一区二区三区忘忧草| 国产精品乱人伦| 国产色爱av资源综合区| 国产日韩欧美制服另类| 国产性天天综合网| 国产精品久久久久久亚洲毛片| 国产精品―色哟哟| 亚洲欧洲日韩av| 一区二区三区在线观看动漫| 亚洲国产精品久久人人爱| 亚洲高清一区二区三区| 日本亚洲电影天堂| 国模冰冰炮一区二区| 国产99一区视频免费| 99久久精品国产一区二区三区| 色噜噜狠狠成人网p站| 在线视频一区二区三| 91精品免费在线观看| ww亚洲ww在线观看国产| 国产欧美精品区一区二区三区| 成人免费一区二区三区在线观看| 亚洲精品国产一区二区精华液| 亚洲在线视频一区| 青青草国产精品亚洲专区无| 黑人巨大精品欧美黑白配亚洲| 一区二区三区影院| 99精品热视频| 高清国产一区二区三区| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲aaa精品| 久久99精品久久久久| 亚洲自拍偷拍麻豆| 337p粉嫩大胆噜噜噜噜噜91av| 久久人人超碰精品| 亚洲人成亚洲人成在线观看图片| 亚洲bt欧美bt精品| 国产成人精品www牛牛影视| 一本久道中文字幕精品亚洲嫩| 欧美一区二区福利在线| 欧美国产97人人爽人人喊| 亚洲精品你懂的| 欧美a级一区二区| 风流少妇一区二区| 欧美女孩性生活视频| 国产欧美精品国产国产专区| 亚洲国产成人tv| 国产精品一卡二卡在线观看| 欧美色综合久久| 国产三级精品视频| 亚洲午夜免费电影| 成人免费毛片嘿嘿连载视频| 欧美肥妇free| 亚洲图片你懂的| 韩日欧美一区二区三区| 欧美日韩在线电影| 日本一区免费视频| 久久精品国产77777蜜臀| 91女人视频在线观看| 久久一区二区三区四区| 亚洲成人av免费| 91视频www| 久久精品亚洲精品国产欧美kt∨| 亚洲第一成年网| 91亚洲国产成人精品一区二三 | 波多野结衣中文字幕一区 | 亚洲精品伦理在线| 国产一区免费电影| 91麻豆精品国产无毒不卡在线观看 | 国产色产综合色产在线视频 | 在线观看91精品国产入口| 国产日产欧美一区| 国内精品免费**视频| 欧美日韩国产大片| 亚洲欧美视频在线观看| 成人午夜精品在线| 久久毛片高清国产| 麻豆91在线播放| 日本高清无吗v一区| 国内外精品视频| 日韩一区二区视频| 亚洲国产aⅴ成人精品无吗| 99国产精品国产精品毛片| 国产亚洲人成网站| 韩国成人福利片在线播放| 欧美一区二区大片| 亚洲国产人成综合网站| 91无套直看片红桃| 中文字幕日韩一区| 成人看片黄a免费看在线| 国产色产综合色产在线视频| 国产尤物一区二区| 久久久久久久性| 国产高清不卡一区二区| 欧美成人一区二区| 韩国精品在线观看| 久久网这里都是精品| 激情五月激情综合网| 精品国产乱码久久久久久图片 | 亚洲一区中文在线| 在线免费观看视频一区| 亚洲一区视频在线| 欧美三级一区二区| 天天av天天翘天天综合网 | 久久综合久久综合亚洲| 精品无人码麻豆乱码1区2区| 日韩精品一区二区三区视频 | 91精品国产一区二区三区蜜臀 | 欧美日韩久久不卡| 亚洲v精品v日韩v欧美v专区 | 一区二区三区蜜桃网| 日本韩国一区二区三区视频| 亚洲国产精品一区二区www在线 | 亚洲三级在线播放| 在线视频一区二区免费| 天堂蜜桃一区二区三区| 欧美成人高清电影在线| 国产激情一区二区三区| 国产精品久久三区| 欧美性猛交一区二区三区精品| 午夜精品爽啪视频| 精品国产伦一区二区三区观看体验| 国精产品一区一区三区mba桃花| 国产婷婷色一区二区三区在线| 不卡高清视频专区| 亚洲第一会所有码转帖| 欧美成人福利视频| 99视频精品全部免费在线| 一区二区三区成人在线视频| 91精品午夜视频| 国产aⅴ精品一区二区三区色成熟| 国产精品成人免费精品自在线观看| 欧洲人成人精品| 精品一区二区三区日韩| 中文字幕在线不卡| 这里只有精品电影| 国产aⅴ精品一区二区三区色成熟| 一区二区三区电影在线播| 欧美一级艳片视频免费观看| 国产98色在线|日韩| 亚洲成人福利片| 国产欧美一区二区精品性色| 欧美亚洲日本一区| 国产成人小视频| 亚洲国产视频a| 久久精品一区蜜桃臀影院| 欧美吻胸吃奶大尺度电影| 国产做a爰片久久毛片| 亚洲激情图片小说视频| 精品国产一区二区三区久久久蜜月 | 国产精品乱人伦| 91精品国产综合久久久久| 成人黄色电影在线| 免费在线观看一区| 亚洲色图欧美激情| 欧美精品一区二| 精品视频在线看| 不卡一区二区在线| 麻豆精品一区二区av白丝在线| 国产精品国产三级国产普通话三级 | 99re热这里只有精品免费视频 | 51精品国自产在线| 93久久精品日日躁夜夜躁欧美| 麻豆免费精品视频| 亚洲人快播电影网| 国产欧美视频在线观看| 91麻豆精品国产91久久久 | 国产精品久久久99| 欧美成人高清电影在线| 欧美视频第二页| 成人黄色在线看| 国内精品写真在线观看| 亚洲图片欧美色图| 中文字幕一区二区三区在线不卡| 精品国产免费视频| 欧美一区二区三区视频在线观看| 91啪九色porn原创视频在线观看| 国产乱码一区二区三区| 麻豆一区二区在线| 亚洲福利一区二区| 亚洲免费在线观看| 亚洲国产精品精华液2区45| 欧美mv日韩mv| 91精品国产一区二区三区| 在线亚洲一区二区| 色综合久久久久| 99国内精品久久| 丁香婷婷综合色啪| 国产激情一区二区三区桃花岛亚洲| 麻豆成人久久精品二区三区小说| 五月婷婷激情综合网| 一区二区三区免费观看| 亚洲欧美另类久久久精品| 国产精品丝袜在线| 国产人成一区二区三区影院| 久久理论电影网| 久久蜜桃一区二区| 久久精品视频一区二区三区| 欧美zozozo| 2020国产精品自拍|