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

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

?? timeseriesdataitem.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.]
 *
 * -----------------------
 * TimeSeriesDataItem.java
 * -----------------------
 * (C) Copyright 2001-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: TimeSeriesDataItem.java,v 1.5.2.1 2005/10/25 21:35:24 mungady Exp $
 *
 * Changes
 * -------
 * 11-Oct-2001 : Version 1 (DG);
 * 15-Nov-2001 : Updated Javadoc comments (DG);
 * 29-Nov-2001 : Added cloning (DG);
 * 24-Jun-2002 : Removed unnecessary import (DG);
 * 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 13-Mar-2003 : Renamed TimeSeriesDataPair --> TimeSeriesDataItem, moved to
 *               com.jrefinery.data.time package, implemented Serializable (DG)
 */

package org.jfree.data.time;

import java.io.Serializable;

/**
 * Represents one data item in a time series.
 * <P>
 * The time period can be any of the following:
 * <ul>
 * <li>{@link Year}</li>
 * <li>{@link Quarter}</li>
 * <li>{@link Month}</li>
 * <li>{@link Week}</li>
 * <li>{@link Day}</li>
 * <li>{@link Hour}</li>
 * <li>{@link Minute}</li>
 * <li>{@link Second}</li>
 * <li>{@link Millisecond}</li>
 * <li>{@link FixedMillisecond}</li>
 * </ul>
 *
 * The time period is an immutable property of the data item.  Data items will
 * often be sorted within a list, and allowing the time period to be changed
 * could destroy the sort order.
 * <P>
 * Implements the <code>Comparable</code> interface so that standard Java 
 * sorting can be used to keep the data items in order.
 *
 */
public class TimeSeriesDataItem implements Cloneable, Comparable, Serializable {

    /** For serialization. */
    private static final long serialVersionUID = -2235346966016401302L;
    
    /** The time period. */
    private RegularTimePeriod period;

    /** The value associated with the time period. */
    private Number value;

    /**
     * Constructs a new data item that associates a value with a time period.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value (<code>null</code> permitted).
     */
    public TimeSeriesDataItem(RegularTimePeriod period, Number value) {
        if (period == null) {
            throw new IllegalArgumentException("Null 'period' argument.");   
        }
        this.period = period;
        this.value = value;
    }

    /**
     * Constructs a new data item that associates a value with a time period.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value associated with the time period.
     */
    public TimeSeriesDataItem(RegularTimePeriod period, double value) {
        this(period, new Double(value));
    }

    /**
     * Returns the time period.
     *
     * @return The time period (never <code>null</code>).
     */
    public RegularTimePeriod getPeriod() {
        return this.period;
    }

    /**
     * Returns the value.
     *
     * @return The value (<code>null</code> possible).
     */
    public Number getValue() {
        return this.value;
    }

    /**
     * Sets the value for this data item.
     *
     * @param value  the value (<code>null</code> permitted).
     */
    public void setValue(Number value) {
        this.value = value;
    }

    /**
     * Tests this object for equality with an arbitrary object.
     *
     * @param o  the other object.
     *
     * @return A boolean.
     */
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof TimeSeriesDataItem)) {
            return false;
        }
        TimeSeriesDataItem timeSeriesDataItem = (TimeSeriesDataItem) o;
        if (this.period != null) {
            if (!this.period.equals(timeSeriesDataItem.period)) {
                return false;
            }
        }
        else if (timeSeriesDataItem.period != null) {
           return false;
        }
        
        if (this.value != null) {
            if (!this.value.equals(timeSeriesDataItem.value)) {
                return false;
            }
        }
        else if (timeSeriesDataItem.value != null) {
            return false;
        }

        return true;
    }

    /**
     * Returns a hash code.
     * 
     * @return A hash code.
     */
    public int hashCode() {
        int result;
        result = (this.period != null ? this.period.hashCode() : 0);
        result = 29 * result + (this.value != null ? this.value.hashCode() : 0);
        return result;
    }

    /**
     * Returns an integer indicating the order of this data pair object
     * relative to another object.
     * <P>
     * For the order we consider only the timing:
     * negative == before, zero == same, positive == after.
     *
     * @param o1  The object being compared to.
     *
     * @return An integer indicating the order of the data item object 
     *         relative to another object.
     */
    public int compareTo(Object o1) {

        int result;

        // CASE 1 : Comparing to another TimeSeriesDataItem object
        // -------------------------------------------------------
        if (o1 instanceof TimeSeriesDataItem) {
            TimeSeriesDataItem datapair = (TimeSeriesDataItem) o1;
            result = getPeriod().compareTo(datapair.getPeriod());
        }

        // CASE 2 : Comparing to a general object
        // ---------------------------------------------
        else {
            // consider time periods to be ordered after general objects
            result = 1;
        }

        return result;

    }

    /**
     * Clones the data item.  Note: there is no need to clone the period or 
     * value since they are immutable classes.
     *
     * @return A clone of the data item.
     */
    public Object clone() {
        Object clone = null;
        try {
            clone = super.clone();
        }
        catch (CloneNotSupportedException e) { // won't get here...
            e.printStackTrace();
        }
        return clone;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丰满亚洲少妇av| 精品久久99ma| 久久久五月婷婷| 亚洲成人av福利| 成人av动漫在线| 久久久精品一品道一区| 三级影片在线观看欧美日韩一区二区| 国产成人啪免费观看软件| 91麻豆精品国产91久久久久久| 亚洲欧洲美洲综合色网| 国产在线精品一区二区夜色| 欧美美女一区二区| 一区二区三区四区激情| 懂色av一区二区三区免费看| 精品成人免费观看| 奇米影视7777精品一区二区| 欧美在线观看你懂的| 成人免费在线观看入口| 国产成人av电影在线播放| 精品少妇一区二区三区视频免付费| 亚洲一区二区三区视频在线播放| 99re热这里只有精品免费视频| 久久久夜色精品亚洲| 久久国产综合精品| 欧美videofree性高清杂交| 日韩国产高清在线| 欧美一区三区二区| 亚洲国产欧美在线| 欧美三级日韩三级国产三级| 亚洲四区在线观看| 91美女片黄在线观看| 一区二区三区日本| 欧美三级在线视频| 日本欧美韩国一区三区| 欧美videossexotv100| 激情深爱一区二区| 精品久久国产字幕高潮| 高清成人免费视频| 国产精品欧美精品| 色婷婷综合激情| 亚洲午夜激情网站| 欧美欧美午夜aⅴ在线观看| 天天影视涩香欲综合网| 欧美一二三在线| 麻豆国产欧美日韩综合精品二区 | 26uuu久久综合| 精品亚洲免费视频| 久久久久久97三级| 成人高清av在线| 亚洲国产sm捆绑调教视频| 欧美一区二区视频在线观看| 精品一区二区三区免费视频| 国产午夜精品一区二区三区嫩草| av不卡免费在线观看| 亚洲综合自拍偷拍| 精品国产污污免费网站入口| 懂色av中文一区二区三区| 亚洲精品大片www| 日韩一区二区精品在线观看| 国产麻豆精品在线| 亚洲在线中文字幕| 久久久精品人体av艺术| 国产成人鲁色资源国产91色综| 中文字幕日本不卡| 欧美肥妇bbw| 99v久久综合狠狠综合久久| 无码av免费一区二区三区试看| 久久久久久免费毛片精品| 91麻豆文化传媒在线观看| 蜜臀va亚洲va欧美va天堂| 中文字幕亚洲区| 日韩欧美中文字幕公布| 99精品欧美一区二区蜜桃免费 | 久久综合狠狠综合| 一本大道久久a久久综合婷婷| 青青青爽久久午夜综合久久午夜| 国产精品婷婷午夜在线观看| 欧美另类一区二区三区| 91丨九色丨黑人外教| 久久成人精品无人区| 亚洲另类中文字| 久久女同精品一区二区| 欧美日本在线播放| 91在线视频网址| 精品无码三级在线观看视频| 亚洲午夜影视影院在线观看| 国产精品女人毛片| 精品国产一区二区三区不卡| 日本乱码高清不卡字幕| 成人性生交大片免费看在线播放| 男女男精品网站| 天天av天天翘天天综合网色鬼国产| 中文字幕av一区二区三区高| 欧美成人激情免费网| 欧美日韩成人激情| 欧美日韩国产一二三| 色综合天天综合网天天狠天天 | 欧美视频一区二区在线观看| 国产成+人+日韩+欧美+亚洲| 麻豆91免费看| 日韩国产在线观看| 亚洲18色成人| 亚洲一区在线电影| 亚洲国产精品自拍| 亚洲综合av网| 亚洲国产精品久久人人爱蜜臀| 亚洲欧美国产毛片在线| 国产精品电影一区二区| 国产三级精品在线| 中文字幕免费一区| 欧美国产激情二区三区| 久久亚洲综合色| 久久美女艺术照精彩视频福利播放| 3d动漫精品啪啪| 日韩午夜三级在线| 欧美成人一级视频| 欧美精品一区二区高清在线观看| 日韩欧美第一区| 欧美精品一区二区在线播放| 91成人免费在线视频| 色噜噜夜夜夜综合网| 欧美私模裸体表演在线观看| 国产精品欧美经典| 国产精品三级av| 中文字幕免费一区| 亚洲精品写真福利| 日韩电影免费在线观看网站| 日本不卡在线视频| 久久精品久久精品| 国产精品一二三四| voyeur盗摄精品| 欧美日韩久久久| 精品国产麻豆免费人成网站| 国产女人18水真多18精品一级做| 国产精品欧美极品| 亚洲国产精品久久一线不卡| 久久精品噜噜噜成人av农村| 成人午夜电影小说| 欧美亚洲自拍偷拍| 久久综合资源网| 艳妇臀荡乳欲伦亚洲一区| 美女一区二区视频| 成人不卡免费av| 欧美日韩视频在线观看一区二区三区| 日韩一区二区高清| 国产精品久久久久久久久免费丝袜 | 欧美男男青年gay1069videost| 欧美一级欧美三级| 中文字幕av免费专区久久| 亚洲成av人片一区二区梦乃| 国产一区二区三区电影在线观看 | 日韩国产精品久久久| 成人综合婷婷国产精品久久蜜臀| 91色porny蝌蚪| 日韩欧美一级二级三级| 亚洲人成精品久久久久| 久久国产精品露脸对白| 91国产免费观看| 日韩精品最新网址| 一区二区三区四区不卡在线| 国产毛片精品一区| 欧美日韩高清一区二区不卡| 亚洲欧洲国产专区| 日本91福利区| 欧美写真视频网站| 国产欧美一区二区三区在线看蜜臀| 亚洲一区二区视频在线观看| 国产999精品久久久久久绿帽| 欧美顶级少妇做爰| 亚洲精品福利视频网站| 成人免费视频网站在线观看| 欧美大片在线观看一区| 亚洲综合免费观看高清完整版在线 | 在线观看视频91| 中文字幕的久久| 国产一区 二区| 日韩免费电影网站| 亚洲成精国产精品女| 99久久99久久免费精品蜜臀| 久久综合色鬼综合色| 日韩av一区二| 欧美巨大另类极品videosbest| 中文字幕一区二区视频| 国产精品一区二区不卡| 日韩免费高清电影| 日韩成人午夜精品| 91麻豆精品国产自产在线| 亚洲影视在线播放| 在线观看亚洲精品| 亚洲一区二三区| 日本高清不卡在线观看| 亚洲精品综合在线| 91视频免费播放| 亚洲精品免费在线| 日本精品裸体写真集在线观看| 国产精品久久久久久久久久久免费看| 国产成人h网站| 日韩毛片在线免费观看| 99久久精品国产导航| 亚洲黄色在线视频|