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

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

?? objecttable.java

?? 水晶 ? ?  報表 ? ? ? 源碼
?? JAVA
字號:
/* ======================================
 * JFreeChart : a free Java chart library
 * ======================================
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 * Project Lead:  David Gilbert (david.gilbert@object-refinery.com);
 *
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * 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., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * ----------------
 * ObjectTable.java
 * ----------------
 * (C) Copyright 2003 by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: ObjectTable.java,v 1.2 2003/07/24 11:14:13 mungady Exp $
 *
 * Changes
 * -------
 * 29-Apr-2003 : Version 1, based on PaintTable class (DG);
 * 21-May-2003 : Copied the array based implementation of StrokeTable and
 *               fixed the serialisation behaviour (TM).
 */

package org.jfree.util;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OptionalDataException;
import java.io.Serializable;


/**
 * A lookup table for objects.
 *
 * @author David Gilbert
 */
public class ObjectTable implements Serializable {

  /** The number of rows. */
  private int rows;

  /** The number of columns. */
  private int columns;

  /** An array of <code>Stroke</code> objects.  The array may contain <code>null</code> values. */
  private transient Object[][] data;
    /**
     * Creates a new table.
     */
    public ObjectTable() {
      this.rows = 0;
      this.columns = 0;
      this.data = new Object[0][];
    }

    /**
     * Returns the number of rows in the table.
     *
     * @return The row count.
     */
    public int getRowCount() {
        return rows;
    }

    /**
     * Returns the number of columns in the table.
     *
     * @return The column count.
     */
    public int getColumnCount() {
        return columns;
    }

    /**
     * Returns the object from a particular cell in the table.
     * Returns null, if there is no object at the given position.
     * <P>
     * Note: throws IndexOutOfBoundsException if row or column is negative.
     * 
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     *
     * @return The object.
     */
    protected Object getObject(int row, int column) {

      Object result = null;
      if (row < this.data.length) {
          Object[] current = this.data[row];
          if (column < current.length) {
              result = current[column];
          }
      }
      return result;

    }

    /**
     * Sets the object for a cell in the table.  The table is expanded if necessary.
     *
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     * @param object  the object.
     */
    protected void setObject(int row, int column, Object object) {

      // does this increase the number of rows?  if yes, create new storage
      if (row >= this.data.length) {
          Object[][] enlarged = new Object[row + 1][];
          System.arraycopy(this.data, 0, enlarged, 0, this.data.length);
          for (int j = this.data.length; j <= row; j++) {
              enlarged[j] = new Object[0];
          }
          this.data = enlarged;
          this.rows = row + 1;
      }

      // does this increase the current row?
      Object[] current = this.data[row];
      if (column >= current.length) {
          Object[] enlarged = new Object[column + 1];
          System.arraycopy(current, 0, enlarged, 0, current.length);
          enlarged[column] = object;
          this.data[row] = enlarged;
          this.columns = column + 1;
      }
      else {
          current[column] = object;
      }

    }

    /**
     * Tests this paint table for equality with another object (typically also an
     * <code>ObjectTable</code>).
     *
     * @param o  the other object.
     *
     * @return A boolean.
     */
    public boolean equals(Object o) {

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

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

        if (o instanceof ObjectTable) {
            ObjectTable ot = (ObjectTable) o;
            boolean result = (getRowCount() == ot.getRowCount());
            result = result && (getColumnCount() == ot.getColumnCount());
            if (result) {
                for (int r = 0; r < getRowCount(); r++) {
                    for (int c = 0; c < getColumnCount(); c++) {
                        result = result && ObjectUtils.equalOrBothNull(getObject(r, c),
                                                            ot.getObject(r, c));
                    }
                }
            }
            return result;
        }

        return false;

    }

  /**
   * Handles serialization.
   *
   * @param stream  the output stream.
   *
   * @throws java.io.IOException if there is an I/O problem.
   */
  private void writeObject(ObjectOutputStream stream) throws IOException {
      stream.defaultWriteObject();
      int rowCount = this.data.length;
      stream.writeInt(rowCount);
      for (int r = 0; r < rowCount; r++) {
          Object[] column = this.data[r];
          int columnCount = column.length;
          stream.writeInt(columnCount);
          for (int c = 0; c < columnCount; c++) {
              writeSerializedData(stream, column[c]);
          }
      }
  }

  /**
   * Handles the serialization of an single element of this table.
   *
   * @param stream the stream which should write the object
   * @param o the object that should be serialized
   * @throws IOException if an IO error occured
   */
  protected void writeSerializedData (ObjectOutputStream stream, Object o)
    throws IOException
  {
    stream.writeObject(o);
  }

  /**
   * Restores a serialized object.
   *
   * @param stream  the input stream.
   *
   * @throws java.io.IOException if there is an I/O problem.
   * @throws ClassNotFoundException if a class cannot be found.
   */
  private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
      stream.defaultReadObject();
      int rowCount = stream.readInt();
      this.data = new Object[rowCount][];
      for (int r = 0; r < rowCount; r++) {
          int columnCount = stream.readInt();
          Object[] column = new Object[columnCount];
          this.data[r] = column;
          for (int c = 0; c < columnCount; c++) {
            column[c] = readSerializedData(stream);
          }
      }
  }

  /**
   * Handles the deserialization of a single element of the table.
   *
   * @param stream the object input stream from which to read the object.
   * @return the deserialized object
   * @throws OptionalDataException Primitive data was found in the
   * stream instead of objects.
   * @throws ClassNotFoundException if a class cannot be found.
   * @throws IOException Any of the usual Input/Output related exceptions.
   */
  protected Object readSerializedData (ObjectInputStream stream)
    throws OptionalDataException, ClassNotFoundException, IOException
  {
    return stream.readObject();
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美二区三区| 欧美日韩精品免费| 国产ts人妖一区二区| 免费成人结看片| 久久精品久久久精品美女| 午夜精品久久久久久久| 天天综合网天天综合色| 婷婷成人激情在线网| 日本亚洲电影天堂| 国产乱妇无码大片在线观看| 国产精品中文字幕日韩精品 | 免费人成网站在线观看欧美高清| 亚洲成av人片在www色猫咪| 婷婷一区二区三区| 毛片基地黄久久久久久天堂| 激情成人综合网| 岛国精品在线观看| 色欧美片视频在线观看| 在线播放91灌醉迷j高跟美女| 日韩欧美一区二区视频| 久久久久国产免费免费| 亚洲欧美经典视频| 日韩电影在线观看一区| 国产九色sp调教91| 91在线视频在线| 欧美一区二区观看视频| 中文字幕不卡在线观看| 亚洲综合图片区| 激情欧美一区二区三区在线观看| 成人91在线观看| 91精品国产91久久久久久一区二区 | ww久久中文字幕| 中文字幕一区免费在线观看| 亚洲电影一区二区| 国产999精品久久久久久| 91久久精品国产91性色tv| 欧美一级在线观看| 亚洲欧美福利一区二区| 国内精品久久久久影院色| 在线观看国产91| 国产亚洲va综合人人澡精品| 午夜精品久久久| 97精品超碰一区二区三区| 2欧美一区二区三区在线观看视频| 日韩理论片在线| 国产精品自拍网站| 日韩欧美亚洲国产另类| 一区二区三区丝袜| 成人h动漫精品一区二| 91精品啪在线观看国产60岁| 亚洲视频每日更新| 成人综合在线观看| 精品乱人伦小说| 天堂久久一区二区三区| 一本大道久久a久久综合| 国产片一区二区三区| 久久国产精品第一页| 欧美日韩在线播放| 亚洲女同女同女同女同女同69| 国产精品456露脸| 日韩精品综合一本久道在线视频| 亚洲成人av电影| 色综合天天综合网天天狠天天| 国产午夜久久久久| 青青草97国产精品免费观看| 欧美视频三区在线播放| 亚洲天天做日日做天天谢日日欢 | 亚洲成人在线免费| 色爱区综合激月婷婷| 国产精品美女视频| 成人一区二区三区| 久久蜜臀精品av| 国产成人精品免费一区二区| 精品国产91亚洲一区二区三区婷婷| 亚洲成人免费看| 欧美一级久久久| 麻豆成人91精品二区三区| 91精品国产综合久久久久久漫画| 亚洲国产毛片aaaaa无费看 | 欧美一区二区三区四区视频| 亚洲bdsm女犯bdsm网站| 日韩一级视频免费观看在线| 蜜臀av一区二区三区| 精品国产91久久久久久久妲己| 久久精品国产精品亚洲精品| 精品国产3级a| 91在线观看视频| 亚洲国产一区视频| 日韩视频免费直播| 国产精品影视天天线| 中文字幕中文字幕一区| 在线观看日韩高清av| 香蕉久久夜色精品国产使用方法| 91麻豆精品国产无毒不卡在线观看 | 久久久久久久av麻豆果冻| 国产精品77777竹菊影视小说| 国产精品毛片久久久久久| 欧美性大战久久久久久久| 美国十次综合导航| 亚洲欧洲日韩在线| 欧美精品vⅰdeose4hd| 国产在线不卡一区| 一区二区在线电影| 欧美videos中文字幕| gogo大胆日本视频一区| 亚洲一区二区精品3399| 26uuu成人网一区二区三区| 9i看片成人免费高清| 日韩国产在线观看| 国产精品网曝门| 91精品午夜视频| 99精品欧美一区| 免费一级欧美片在线观看| 亚洲婷婷综合色高清在线| 日韩欧美国产高清| 97精品电影院| 国产91在线观看| 蜜臀久久99精品久久久画质超高清 | 2017欧美狠狠色| 欧美在线免费观看亚洲| 国内精品国产成人国产三级粉色 | 久久精品久久综合| 一区二区三区四区在线| 精品处破学生在线二十三| 欧美色国产精品| 91影院在线观看| 丁香激情综合国产| 久久成人精品无人区| 一区二区在线免费观看| 中文字幕的久久| 久久久久久夜精品精品免费| 欧美精品自拍偷拍| 色综合久久中文综合久久97| 国产传媒日韩欧美成人| 久久99深爱久久99精品| 奇米综合一区二区三区精品视频| 亚洲精品综合在线| 成人免费在线视频| 国产欧美日韩精品在线| 精品美女在线播放| 亚洲精品在线免费播放| 日韩一区二区三区精品视频| 欧美日韩黄色影视| 欧美狂野另类xxxxoooo| 欧美日韩日本视频| 欧美日韩在线免费视频| 欧美三片在线视频观看| 91国产成人在线| 欧美无人高清视频在线观看| 日本电影欧美片| 91福利国产成人精品照片| 91视频一区二区| 99视频精品全部免费在线| av影院午夜一区| 色婷婷久久99综合精品jk白丝| 91浏览器入口在线观看| 色偷偷成人一区二区三区91| 日本高清不卡一区| 欧美乱妇23p| 日韩一级大片在线| 久久青草欧美一区二区三区| 久久久久久久综合日本| 国产网站一区二区| 国产精品视频看| 亚洲女厕所小便bbb| 香蕉加勒比综合久久| 久久99国产精品久久| 国产精品88888| 色狠狠一区二区三区香蕉| 7777精品伊人久久久大香线蕉完整版 | 91蜜桃传媒精品久久久一区二区| 色成人在线视频| 91精选在线观看| 久久精品人人做人人综合| 国产精品乱人伦一区二区| 亚洲影视在线播放| 日本不卡视频一二三区| 国产河南妇女毛片精品久久久| 成人影视亚洲图片在线| 色欧美乱欧美15图片| 91精品国产高清一区二区三区蜜臀 | 国产精品每日更新在线播放网址| 亚洲精品一二三| 久久精品国产网站| 91免费版在线看| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 亚洲高清免费视频| 国产精品综合网| 欧美日韩黄色影视| 国产精品免费视频网站| 日韩国产欧美在线视频| av中文字幕在线不卡| 6080yy午夜一二三区久久| 国产欧美一区二区三区鸳鸯浴 | 欧美精品一区二区三区四区| 亚洲欧美在线视频| 蜜乳av一区二区三区| 在线看国产一区二区| 2020日本不卡一区二区视频| 亚洲二区在线视频|