org.jfree.chart.plot.XYPlot.equals()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(74)

本文整理了Java中org.jfree.chart.plot.XYPlot.equals()方法的一些代码示例,展示了XYPlot.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYPlot.equals()方法的具体详情如下:
包路径:org.jfree.chart.plot.XYPlot
类名称:XYPlot
方法名:equals

XYPlot.equals介绍

[英]Tests this plot for equality with another object.
[中]测试此绘图是否与其他对象相等。

代码示例

代码示例来源:origin: jfree/jfreechart

/**
 * Tests this plot for equality with another object.
 *
 * @param obj  the other object.
 *
 * @return {@code true} or {@code false}.
 */
@Override
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof CombinedDomainXYPlot)) {
    return false;
  }
  CombinedDomainXYPlot that = (CombinedDomainXYPlot) obj;
  if (this.gap != that.gap) {
    return false;
  }
  if (!ObjectUtils.equal(this.subplots, that.subplots)) {
    return false;
  }
  return super.equals(obj);
}

代码示例来源:origin: jfree/jfreechart

/**
 * Tests this plot for equality with another object.
 *
 * @param obj  the other object.
 *
 * @return {@code true} or {@code false}.
 */
@Override
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof CombinedRangeXYPlot)) {
    return false;
  }
  CombinedRangeXYPlot that = (CombinedRangeXYPlot) obj;
  if (this.gap != that.gap) {
    return false;
  }
  if (!ObjectUtils.equal(this.subplots, that.subplots)) {
    return false;
  }
  return super.equals(obj);
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Tests this plot for equality with another object.
 *
 * @param obj  the other object.
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof CombinedRangeXYPlot)) {
    return false;
  }
  CombinedRangeXYPlot that = (CombinedRangeXYPlot) obj;
  if (this.gap != that.gap) {
    return false;
  }
  if (!ObjectUtilities.equal(this.subplots, that.subplots)) {
    return false;
  }
  return super.equals(obj);
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Tests this plot for equality with another object.
 *
 * @param obj  the other object.
 *
 * @return <code>true</code> or <code>false</code>.
 */
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof CombinedDomainXYPlot)) {
    return false;
  }
  CombinedDomainXYPlot that = (CombinedDomainXYPlot) obj;
  if (this.gap != that.gap) {
    return false;
  }
  if (!ObjectUtilities.equal(this.subplots, that.subplots)) {
    return false;
  }
  return super.equals(obj);
}

相关文章

微信公众号

最新文章

更多

XYPlot类方法